Stop processing headers and sending FETCH_HEADER if fetch was aborted.

svn path=/trunk/netsurf/; revision=4231
This commit is contained in:
James Bursa 2008-05-31 16:52:37 +00:00
parent b9bce3fa31
commit ef6690ad72

View File

@ -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++)