summaryrefslogtreecommitdiff
path: root/content/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/fetch.c')
-rw-r--r--content/fetch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/fetch.c b/content/fetch.c
index 89351b452..346ac43de 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -620,7 +620,9 @@ void fetch_done(CURL *curl_handle, CURLcode result)
if (!abort && result == CURLE_OK) {
/* fetch completed normally */
- if (!f->had_headers && fetch_process_headers(f))
+ if (f->stopped ||
+ (!f->had_headers &&
+ fetch_process_headers(f)))
; /* redirect with no body or similar */
else
finished = true;