From 05cfabbace0f39e9dc2559a04e2cfa53db307cf8 Mon Sep 17 00:00:00 2001 From: "ebina%netscape.com" Date: Fri, 12 Mar 1999 19:16:01 +0000 Subject: [PATCH] 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. --- network/protocol/http/mkhttp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/protocol/http/mkhttp.c b/network/protocol/http/mkhttp.c index fa758df8d720..67ef077a0fc3 100644 --- a/network/protocol/http/mkhttp.c +++ b/network/protocol/http/mkhttp.c @@ -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);