[Webkit-unassigned] [Bug 111380] Handle CRLF in MIME types of Blobs appended to FormData

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 5 03:02:53 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=111380





--- Comment #13 from Victor Costan <costan at gmail.com>  2013-03-05 03:05:17 PST ---
Also, for the record, explanation for my approach to fixing this problem.

The File API spec [1] says that the type parameter must be used as the Content-Type header value even if it's not a valid MIME type. At the same time, the HTTP spec [2] says that a HTTP receiver may replace any LWS (CR+LF in a header value) by one SP (space) without changing the semantics of the HTTP header value. So I'm taking advantage of this and replacing CRLF -> SP in the Content-Type header value.

[1] http://www.w3.org/TR/FileAPI/#constructorParams
[2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list