mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-14 06:39:22 +03:00
Stop processing headers and sending FETCH_HEADER if fetch was aborted.
svn path=/trunk/netsurf/; revision=4231
This commit is contained in:
parent
b9bce3fa31
commit
ef6690ad72
@ -998,6 +998,11 @@ size_t fetch_curl_header(char *data, size_t size, size_t nmemb,
|
||||
int i;
|
||||
size *= nmemb;
|
||||
|
||||
if (f->abort) {
|
||||
f->stopped = true;
|
||||
return 0;
|
||||
}
|
||||
|
||||
fetch_send_callback(FETCH_HEADER, f->fetch_handle, data, size);
|
||||
|
||||
#define SKIP_ST(o) for (i = (o); i < (int) size && (data[i] == ' ' || data[i] == '\t'); i++)
|
||||
|
Loading…
Reference in New Issue
Block a user