RESOLVED FIXED 9572
Add application/xhtml+xml to the Accept header
https://bugs.webkit.org/show_bug.cgi?id=9572
Summary Add application/xhtml+xml to the Accept header
Alexey Proskuryakov
Reported 2006-06-25 00:05:14 PDT
Currently, WebKit sends */* as its Accept header. A common technique for servers is to refrain from sending XHTML in this case, because this is what clients lacking XHTML support (such as IE) send. This is what Firefox sends for the main resource: Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Attachments
proposed patch (1.64 KB, patch)
2006-07-07 10:57 PDT, Alexey Proskuryakov
darin: review+
Alexey Proskuryakov
Comment 1 2006-07-07 10:17:44 PDT
See also: bug 9426.
Alexey Proskuryakov
Comment 2 2006-07-07 10:57:59 PDT
Created attachment 9254 [details] proposed patch I am not aware of any reason for us to send something else than Firefox does in the Accept header, so I've just copied theirs.
Darin Adler
Comment 3 2006-07-07 16:27:41 PDT
Comment on attachment 9254 [details] proposed patch What's supplying our current Accept header value?
Alexey Proskuryakov
Comment 4 2006-07-08 00:54:50 PDT
(In reply to comment #3) I couldn't find it in WebCore or WebKit, so it must be NSURLConnection itself.
Darin Adler
Comment 5 2006-07-08 05:50:47 PDT
Comment on attachment 9254 [details] proposed patch This new string will need to be added to StringNotToBeLocalized.txt. r=me
Alexey Proskuryakov
Comment 6 2006-07-08 23:59:04 PDT
(In reply to comment #5) > This new string will need to be added to StringNotToBeLocalized.txt. Added (also "max-age=0" from a previous patch). Committed revision 15246.
Alexey Proskuryakov
Comment 7 2006-07-11 12:03:57 PDT
> Committed revision 15246. .. and 15340 for the test that I missed then.
Note You need to log in before you can comment on or make changes to this bug.