@@ -1540,9 +1540,9 @@ struct active_request_slot *get_active_slot(void)
1540
1540
curl_easy_setopt (slot -> curl , CURLOPT_WRITEFUNCTION , NULL );
1541
1541
curl_easy_setopt (slot -> curl , CURLOPT_POSTFIELDS , NULL );
1542
1542
curl_easy_setopt (slot -> curl , CURLOPT_POSTFIELDSIZE , -1L );
1543
- curl_easy_setopt (slot -> curl , CURLOPT_UPLOAD , 0 );
1544
- curl_easy_setopt (slot -> curl , CURLOPT_HTTPGET , 1 );
1545
- curl_easy_setopt (slot -> curl , CURLOPT_FAILONERROR , 1 );
1543
+ curl_easy_setopt (slot -> curl , CURLOPT_UPLOAD , 0L );
1544
+ curl_easy_setopt (slot -> curl , CURLOPT_HTTPGET , 1L );
1545
+ curl_easy_setopt (slot -> curl , CURLOPT_FAILONERROR , 1L );
1546
1546
curl_easy_setopt (slot -> curl , CURLOPT_RANGE , NULL );
1547
1547
1548
1548
/*
@@ -1551,9 +1551,9 @@ struct active_request_slot *get_active_slot(void)
1551
1551
* HTTP_FOLLOW_* cases themselves.
1552
1552
*/
1553
1553
if (http_follow_config == HTTP_FOLLOW_ALWAYS )
1554
- curl_easy_setopt (slot -> curl , CURLOPT_FOLLOWLOCATION , 1 );
1554
+ curl_easy_setopt (slot -> curl , CURLOPT_FOLLOWLOCATION , 1L );
1555
1555
else
1556
- curl_easy_setopt (slot -> curl , CURLOPT_FOLLOWLOCATION , 0 );
1556
+ curl_easy_setopt (slot -> curl , CURLOPT_FOLLOWLOCATION , 0L );
1557
1557
1558
1558
curl_easy_setopt (slot -> curl , CURLOPT_IPRESOLVE , git_curl_ipresolve );
1559
1559
curl_easy_setopt (slot -> curl , CURLOPT_HTTPAUTH , http_auth_methods );
@@ -2120,12 +2120,12 @@ static int http_request(const char *url,
2120
2120
int ret ;
2121
2121
2122
2122
slot = get_active_slot ();
2123
- curl_easy_setopt (slot -> curl , CURLOPT_HTTPGET , 1 );
2123
+ curl_easy_setopt (slot -> curl , CURLOPT_HTTPGET , 1L );
2124
2124
2125
2125
if (!result ) {
2126
- curl_easy_setopt (slot -> curl , CURLOPT_NOBODY , 1 );
2126
+ curl_easy_setopt (slot -> curl , CURLOPT_NOBODY , 1L );
2127
2127
} else {
2128
- curl_easy_setopt (slot -> curl , CURLOPT_NOBODY , 0 );
2128
+ curl_easy_setopt (slot -> curl , CURLOPT_NOBODY , 0L );
2129
2129
curl_easy_setopt (slot -> curl , CURLOPT_WRITEDATA , result );
2130
2130
2131
2131
if (target == HTTP_REQUEST_FILE ) {
@@ -2151,7 +2151,7 @@ static int http_request(const char *url,
2151
2151
strbuf_addstr (& buf , " no-cache" );
2152
2152
if (options && options -> initial_request &&
2153
2153
http_follow_config == HTTP_FOLLOW_INITIAL )
2154
- curl_easy_setopt (slot -> curl , CURLOPT_FOLLOWLOCATION , 1 );
2154
+ curl_easy_setopt (slot -> curl , CURLOPT_FOLLOWLOCATION , 1L );
2155
2155
2156
2156
headers = curl_slist_append (headers , buf .buf );
2157
2157
@@ -2170,7 +2170,7 @@ static int http_request(const char *url,
2170
2170
curl_easy_setopt (slot -> curl , CURLOPT_URL , url );
2171
2171
curl_easy_setopt (slot -> curl , CURLOPT_HTTPHEADER , headers );
2172
2172
curl_easy_setopt (slot -> curl , CURLOPT_ENCODING , "" );
2173
- curl_easy_setopt (slot -> curl , CURLOPT_FAILONERROR , 0 );
2173
+ curl_easy_setopt (slot -> curl , CURLOPT_FAILONERROR , 0L );
2174
2174
2175
2175
ret = run_one_slot (slot , & results );
2176
2176
@@ -2750,7 +2750,7 @@ struct http_object_request *new_http_object_request(const char *base_url,
2750
2750
freq -> headers = object_request_headers ();
2751
2751
2752
2752
curl_easy_setopt (freq -> slot -> curl , CURLOPT_WRITEDATA , freq );
2753
- curl_easy_setopt (freq -> slot -> curl , CURLOPT_FAILONERROR , 0 );
2753
+ curl_easy_setopt (freq -> slot -> curl , CURLOPT_FAILONERROR , 0L );
2754
2754
curl_easy_setopt (freq -> slot -> curl , CURLOPT_WRITEFUNCTION , fwrite_sha1_file );
2755
2755
curl_easy_setopt (freq -> slot -> curl , CURLOPT_ERRORBUFFER , freq -> errorstr );
2756
2756
curl_easy_setopt (freq -> slot -> curl , CURLOPT_URL , freq -> url );
0 commit comments