diff options
Diffstat (limited to 'src/curl')
| -rw-r--r-- | src/curl/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/curl/http.c b/src/curl/http.c index ecdec2d..ef42c35 100644 --- a/src/curl/http.c +++ b/src/curl/http.c @@ -11,7 +11,7 @@ static void check_status_codes(struct aki_curl *curl) http->callback(http->userdata, AKI_HTTP_RESPONSE_CODE, NULL, http->response_code); } } - if (http->response_code > 0 && http->content_length < 0) { + if (http->response_code == 200 && http->content_length < 0) { curl_easy_getinfo(curl->handle, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T, &http->content_length); if (http->content_length >= 0) { http->callback(http->userdata, AKI_HTTP_CONTENT_LENGTH, NULL, (s64)http->content_length); |