aboutsummaryrefslogtreecommitdiff
path: root/src/writeout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/writeout.c')
-rw-r--r--src/writeout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writeout.c b/src/writeout.c
index 5a7628998..6c86489c3 100644
--- a/src/writeout.c
+++ b/src/writeout.c
@@ -118,7 +118,7 @@ void ourWriteOut(CURL *curl, char *writeinfo)
break;
case VAR_HTTP_CODE:
if(CURLE_OK ==
- curl_easy_getinfo(curl, CURLINFO_HTTP_CODE, &longinfo))
+ curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &longinfo))
fprintf(stream, "%03d", longinfo);
break;
case VAR_HEADER_SIZE: