1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

getredirect.c: fix variable name

Reported-by: Bernard Spil
This commit is contained in:
Daniel Stenberg 2016-01-27 09:35:55 +01:00
parent 06bf874bbc
commit e400a89b18

View File

@ -48,7 +48,7 @@ int main(void)
else {
res = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response_code);
if((res == CURLE_OK) &&
((code / 100) != 3)) {
((response_code / 100) != 3)) {
/* a redirect implies a 3xx response code */
fprintf(stderr, "Not a redirect.\n");
}