Skip to content

Commit 2963960

Browse files
authored
Merge pull request #188 from malash/fix-curl-error-log
Fix `curl_result_code` log
2 parents a34e20d + 57b1718 commit 2963960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/https_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ static int https_fetch_ctx_process_response(https_client_t *client,
354354
WLOG_REQ("curl request failed with write error (probably response content was too large)");
355355
break;
356356
default:
357-
WLOG_REQ("curl request failed with %d: %s", res, curl_easy_strerror(res));
357+
WLOG_REQ("curl request failed with %d: %s", curl_result_code, curl_easy_strerror(curl_result_code));
358358
if (ctx->curl_errbuf[0] != 0) {
359359
WLOG_REQ("curl error message: %s", ctx->curl_errbuf);
360360
}

0 commit comments

Comments
 (0)