Commit 93e32e6f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Modified the default HTTP Accept: header to only be Accept: */*

parent f8a5ec13
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1230,7 +1230,7 @@ CURLcode Curl_http(struct connectdata *conn)
    http->p_pragma = "Pragma: no-cache\r\n";

  if(!checkheaders(data, "Accept:"))
    http->p_accept = "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r\n";
    http->p_accept = "Accept: */*\r\n";

  if(( (HTTPREQ_POST == data->set.httpreq) ||
       (HTTPREQ_POST_FORM == data->set.httpreq) ||
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ http://%HOSTIP:%HOSTPORT/1
GET /1 HTTP/1.1
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept: */*

</protocol>
</verify>
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ the
PUT /we/want/10 HTTP/1.1
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept: */*
Content-Length: 78

Weird
+2 −2
Original line number Diff line number Diff line
@@ -56,12 +56,12 @@ http://%HOSTIP:%HOSTPORT/want/11 -L
GET /want/11 HTTP/1.1
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept: */*

GET /want/data/110002.txt?coolsite=yes HTTP/1.1
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept: */*

</protocol>
</verify>
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ GET /want/12 HTTP/1.1
Range: bytes=100-200
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept: */*

</protocol>
</verify>
Loading