summaryrefslogtreecommitdiff
path: root/lib/curl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/curl.c')
-rw-r--r--lib/curl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/curl.c b/lib/curl.c
index 95e61be..859c873 100644
--- a/lib/curl.c
+++ b/lib/curl.c
@@ -465,9 +465,10 @@ int cCurl::downloadFile(const char* url, int& size, MemoryStruct* data, int time
}
curl_easy_getinfo(handle, CURLINFO_HTTP_CODE, &code);
+ tell(3, "got http code (%ld)", code);
data->statusCode = code;
- if (code != 200)
+ if (code == 404)
{
data->clear();
exit();