Changeset 35167 in webkit


Ignore:
Timestamp:
Jul 14, 2008, 1:58:39 PM (16 years ago)
Author:
adele@apple.com
Message:

2008-07-14 Adele Peterson <adele@apple.com>

Reviewed by Geoff.

Fix for <rdar://problem/5784890> REGRESSION (Safari 3): Can't edit SpeedStream 4100 DSL modem settings

The web server on this particular piece of hardware doesn't handle "text/xml" in the
Accept header if the headers are sent in a certain order. Safari 2 used to send "*/*" in
the Accept header. Firefox 2 sent "text/xml" but in an acceptable order for the web
server. And Firefox 3 doesn't send "text/xml" at all in the Accept header since it
is being deprecated in favor of "application/xml". We decided that the best solution is
to match Firefox 3 and stop sending "text/xml" in the Accept header.

No test. There appears to be no way to get the raw headers in the original order in perl/php.

  • loader/FrameLoader.cpp: (WebCore::FrameLoader::addExtraFieldsToRequest):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r35166 r35167  
     12008-07-14  Adele Peterson  <adele@apple.com>
     2
     3        Reviewed by Geoff.
     4
     5        Fix for <rdar://problem/5784890> REGRESSION (Safari 3): Can't edit SpeedStream 4100 DSL modem settings
     6
     7        The web server on this particular piece of hardware doesn't handle "text/xml" in the
     8        Accept header if the headers are sent in a certain order.  Safari 2 used to send "*/*" in
     9        the Accept header.  Firefox 2 sent "text/xml" but in an acceptable order for the web
     10        server.  And Firefox 3 doesn't send "text/xml" at all in the Accept header since it
     11        is being deprecated in favor of "application/xml".  We decided that the best solution is
     12        to match Firefox 3 and stop sending "text/xml" in the Accept header.
     13
     14        No test.  There appears to be no way to get the raw headers in the original order in perl/php.
     15
     16        * loader/FrameLoader.cpp: (WebCore::FrameLoader::addExtraFieldsToRequest):
     17
    1182008-07-14  Sam Weinig  <sam@webkit.org>
    219
  • trunk/WebCore/loader/FrameLoader.cpp

    r35151 r35167  
    33523352   
    33533353    if (mainResource)
    3354         request.setHTTPAccept("text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5");
     3354        request.setHTTPAccept("application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5");
    33553355}
    33563356
Note: See TracChangeset for help on using the changeset viewer.