-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Extract a MIME type" algorithm should pick the first entry? #529
Comments
Yeah, although we should probably have tests for multiple |
I see. Considering the following, |
Is that what browsers implement? What if you navigate to a URL with two Content-Type headers. Do you get a network error? We should probably have a bunch of web-platform-tests. The HTTP WG generally does a bad job of making sure their requirements can actually be implemented. |
Chrome's fetch() is currently broken (Blink's ExtractMIMEType is using combined value http://crbug.com/713634), but looks Chrome has been not erroring for multiple Content-Types but using the last Content-Type header before the break. Navigating to a resource with multiple Content-Type also works. Haven't checked which one is used for navigation. |
Another angle to test would be a single Relates to whatwg/mimesniff#30. |
whatwg/mimesniff#30 (comment) has my findings on this. Input there much appreciated, even though we'll likely define it here. |
Also known as "extract a MIME type" down right. Tests: web-platform-tests/wpt#10525. Helps with #814. Fixes #529. Closes whatwg/mimesniff#30.
Also known as "extract a MIME type" down right. Tests: web-platform-tests/wpt#10525. Helps with #814. Fixes #529. Closes whatwg/mimesniff#30.
For anyone subscribed to this issue, please note that #831 is pretty close towards solving this. Tests are linked from there as well. |
Also known as "extract a MIME type" done right. Tests: web-platform-tests/wpt#10525. Helps with #814. Fixes #529. Closes whatwg/mimesniff#30.
extract header list values
algorithm returns a list.extract a MIME type
and sites callingextract a MIME type
look using the result as a byte sequence.Should
extract a MIME type
pick the first entry of the result ofextract header list values
if it's not null?The text was updated successfully, but these errors were encountered: