mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Fix bug #2808
Add explicit text/html and text/xml to the accepts header. Move PNG to the from of the list of accepted image formats.
This commit is contained in:
parent
d5acc023a4
commit
05cfabbace
@ -1402,11 +1402,11 @@ net_build_http_request (URL_Struct * URL_s,
|
||||
if(CLEAR_CACHE_BIT(format_out) != FO_INTERNAL_IMAGE)
|
||||
{
|
||||
/* send Accept: *(slash)* as well as the others */
|
||||
sprintf(line_buffer, "Accept: %s, %s, %s, %s, %s, */*" CRLF,
|
||||
IMAGE_GIF, IMAGE_XBM, IMAGE_JPG, IMAGE_PJPG, IMAGE_PNG);
|
||||
sprintf(line_buffer, "Accept: %s, %s, %s, %s, %s, %s, %s, */*" CRLF,
|
||||
TEXT_HTML, TEXT_XML, IMAGE_PNG, IMAGE_GIF, IMAGE_XBM, IMAGE_JPG, IMAGE_PJPG);
|
||||
} else {
|
||||
sprintf(line_buffer, "Accept: %s, %s, %s, %s, %s" CRLF,
|
||||
IMAGE_GIF, IMAGE_XBM, IMAGE_JPG, IMAGE_PJPG, IMAGE_PNG);
|
||||
IMAGE_PNG, IMAGE_GIF, IMAGE_XBM, IMAGE_JPG, IMAGE_PJPG);
|
||||
}
|
||||
|
||||
tmpSize = PL_strlen(line_buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user