No longer suppress the default Accept: header.
This fixes all those sites that brokenly assume that it's required and thus break when the client doesn't send one (here's looking at you royalmail.com). libcurl's default Accept header is "*/*", which is semantically equivalent to not sending a header at all (no header implies the client accepts all content types). svn path=/trunk/netsurf/; revision=4196
This commit is contained in:
parent
5979083a16
commit
c24b426881
|
@ -368,7 +368,6 @@ void * fetch_curl_setup(struct fetch *parent_fetch, const char *url,
|
|||
list = slist;
|
||||
|
||||
/* remove curl default headers */
|
||||
APPEND(fetch->headers, "Accept:");
|
||||
APPEND(fetch->headers, "Pragma:");
|
||||
|
||||
/* when doing a POST libcurl sends Expect: 100-continue" by default
|
||||
|
|
Loading…
Reference in New Issue