[Webkit-unassigned] [Bug 147445] Validation in isValidHTTPHeaderValue is too sensitive.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 4 11:24:46 PDT 2015


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

--- Comment #14 from youenn fablet <youennf at gmail.com> ---
(In reply to comment #13)
> I think that it's a misunderstanding. Setting an empty Content-Type results
> in a malformed header field value with CFNetwork (tested on OS X 10.9.5):
> 
> Content-Type: , application/xml
> 
> So, trimming spaces wouldn't help.

Ah I see...
HTTP allows empty header values AFAIK. HPack supports it also.
Is it considered as a CFNetwork bug? Is it envisioned to update CFNetwork?

If we think CFNetwork will have support for it in the future, we should keep the idea of trimming whitespaces at XHR level and try to find a temporary solution.

> And sorry for sounding like a broken record, but removing Content-Type is a
> bad idea, I don't see any reason to make that possible through
> XMLHttpRequest.

Agreed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150804/afa89fd5/attachment.html>


More information about the webkit-unassigned mailing list