summaryrefslogtreecommitdiff
path: root/src/httpfetch.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-11-09 22:49:27 +0100
committerKahrl <kahrl@gmx.net>2013-12-13 18:05:46 +0100
commit0d990bd189881a9a6c829e1c9ec17b2dc5ac12c8 (patch)
tree90474ffb3ca64934aaefaaba92d85f6ff56b9574 /src/httpfetch.cpp
parentb03135548bbd9bcb73d14b067b96ec913404dd5f (diff)
downloadminetest-0d990bd189881a9a6c829e1c9ec17b2dc5ac12c8.tar.gz
minetest-0d990bd189881a9a6c829e1c9ec17b2dc5ac12c8.tar.bz2
minetest-0d990bd189881a9a6c829e1c9ec17b2dc5ac12c8.zip
Replace any direct curl usage by httpfetch
Diffstat (limited to 'src/httpfetch.cpp')
-rw-r--r--src/httpfetch.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}
}