Skip to content

Commit 80292f2

Browse files
committed
Merge branch 'jk/http-error-messages'
A regression fix for the recently graduated topic. * jk/http-error-messages: http: set curl FAILONERROR each time we select a handle
2 parents dcd8c09 + b793acf commit 80292f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ static CURL *get_curl_handle(void)
282282
#endif
283283
if (ssl_cainfo != NULL)
284284
curl_easy_setopt(result, CURLOPT_CAINFO, ssl_cainfo);
285-
curl_easy_setopt(result, CURLOPT_FAILONERROR, 1);
286285

287286
if (curl_low_speed_limit > 0 && curl_low_speed_time > 0) {
288287
curl_easy_setopt(result, CURLOPT_LOW_SPEED_LIMIT,
@@ -506,6 +505,7 @@ struct active_request_slot *get_active_slot(void)
506505
curl_easy_setopt(slot->curl, CURLOPT_POSTFIELDS, NULL);
507506
curl_easy_setopt(slot->curl, CURLOPT_UPLOAD, 0);
508507
curl_easy_setopt(slot->curl, CURLOPT_HTTPGET, 1);
508+
curl_easy_setopt(slot->curl, CURLOPT_FAILONERROR, 1);
509509
if (http_auth.password)
510510
init_curl_http_auth(slot->curl);
511511

0 commit comments

Comments
 (0)