From 0d990bd189881a9a6c829e1c9ec17b2dc5ac12c8 Mon Sep 17 00:00:00 2001 From: sapier Date: Sat, 9 Nov 2013 22:49:27 +0100 Subject: Replace any direct curl usage by httpfetch --- src/httpfetch.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/httpfetch.cpp') diff --git a/src/httpfetch.cpp b/src/httpfetch.cpp index 25474c725..64e77bc54 100644 --- a/src/httpfetch.cpp +++ b/src/httpfetch.cpp @@ -280,6 +280,7 @@ struct HTTPFetchOngoing if (curl != NULL) { if (curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &result.response_code) != CURLE_OK) { + //we failed to get a return code make sure it is still 0 result.response_code = 0; } } -- cgit v1.2.3