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:
ebina%netscape.com 1999-03-12 19:16:01 +00:00
parent d5acc023a4
commit 05cfabbace

View File

@ -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);