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
See also: bug 9426.
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.
Comment on attachment 9254 [details] proposed patch What's supplying our current Accept header value?
(In reply to comment #3) I couldn't find it in WebCore or WebKit, so it must be NSURLConnection itself.
Comment on attachment 9254 [details] proposed patch This new string will need to be added to StringNotToBeLocalized.txt. r=me
(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.
> Committed revision 15246. .. and 15340 for the test that I missed then.