Bug 117196

Summary: [curl] Headers should be parsed as utf8 if possible
Product: WebKit Reporter: Peter Gal <galpeter>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Severity: Normal CC: bfulgham, commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 117300    
Description Flags
proposed patch none

Description Peter Gal 2013-06-04 07:31:37 PDT
When the server returns the header data for the curl backend it is passed to be converted as a latin1 string. This is not always good.
For example there is a testcase which fails currently: http/tests/download/literal-utf-8.html.

The solution would be to process the input headers as utf8 strings. This solution in the libsoup backend.
Comment 1 Peter Gal 2013-06-04 07:32:07 PDT
I mean:
"This solution in the libsoup backend." -> This solution is also used in the libsoup backend.
Comment 2 Peter Gal 2013-06-04 07:33:11 PDT
Created attachment 203694 [details]
proposed patch
Comment 3 Brent Fulgham 2013-06-04 20:36:58 PDT
Comment on attachment 203694 [details]
proposed patch

Comment 4 WebKit Commit Bot 2013-06-04 20:58:36 PDT
Comment on attachment 203694 [details]
proposed patch

Clearing flags on attachment: 203694

Committed r151195: <http://trac.webkit.org/changeset/151195>
Comment 5 WebKit Commit Bot 2013-06-04 20:58:38 PDT
All reviewed patches have been landed.  Closing bug.