mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
Handle redirects with partial bodies.
svn path=/trunk/netsurf/; revision=3209
This commit is contained in:
parent
8ffe5f5392
commit
6d0795b923
@ -915,6 +915,14 @@ void fetch_done(CURL *curl_handle, CURLcode result)
|
||||
; /* redirect with no body or similar */
|
||||
else
|
||||
finished = true;
|
||||
} else if (result == CURLE_PARTIAL_FILE) {
|
||||
/* CURLE_PARTIAL_FILE occurs if the received body of a
|
||||
* response is smaller than that specified in the
|
||||
* Content-Length header. */
|
||||
if (!f->had_headers && fetch_process_headers(f))
|
||||
; /* redirect with partial body, or similar */
|
||||
else
|
||||
error = true;
|
||||
} else if (result == CURLE_WRITE_ERROR && f->stopped)
|
||||
/* CURLE_WRITE_ERROR occurs when fetch_curl_data
|
||||
* returns 0, which we use to abort intentionally */
|
||||
|
Loading…
Reference in New Issue
Block a user