Changeset 151195 in webkit


Ignore:
Timestamp:
Jun 4, 2013 8:58:39 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[curl] Headers should be parsed as utf8 if possible
https://bugs.webkit.org/show_bug.cgi?id=117196

Patch by Peter Gal <galpeter@inf.u-szeged.hu> on 2013-06-04
Reviewed by Brent Fulgham.

Testcase already present: http/tests/download/literal-utf-8.html

  • platform/network/curl/ResourceHandleManager.cpp:

(WebCore::headerCallback): Parse the header as an utf8 string if possible.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r151193 r151195  
     12013-06-04  Peter Gal  <galpeter@inf.u-szeged.hu>
     2
     3        [curl] Headers should be parsed as utf8 if possible
     4        https://bugs.webkit.org/show_bug.cgi?id=117196
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Testcase already present: http/tests/download/literal-utf-8.html
     9
     10        * platform/network/curl/ResourceHandleManager.cpp:
     11        (WebCore::headerCallback): Parse the header as an utf8 string if possible.
     12
    1132013-06-04  Oliver Hunt  <oliver@apple.com>
    214
  • trunk/Source/WebCore/platform/network/curl/ResourceHandleManager.cpp

    r150964 r151195  
    258258    ResourceHandleClient* client = d->client();
    259259
    260     String header(static_cast<const char*>(ptr), totalSize);
     260    String header = String::fromUTF8WithLatin1Fallback(static_cast<const char*>(ptr), totalSize);
    261261
    262262    /*
Note: See TracChangeset for help on using the changeset viewer.