aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/getinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c
index a4b0fa602..29da0dc3c 100644
--- a/lib/getinfo.c
+++ b/lib/getinfo.c
@@ -103,7 +103,7 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...)
case CURLINFO_EFFECTIVE_URL:
*param_charp = data->change.url?data->change.url:(char *)"";
break;
- case CURLINFO_HTTP_CODE:
+ case CURLINFO_RESPONSE_CODE:
*param_longp = data->info.httpcode;
break;
case CURLINFO_HTTP_CONNECTCODE: