mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Include "content-type" in cors safelisted request headers.
This commit allows headers with "content-type" name to be classified as valid header name, depending on its value according to [the Fetch spec](https://fetch.spec.whatwg.org/#cors-safelisted-request-header). As a result of this change, more request web platform tests pass, whose expected test results are updated with this commit.
This commit is contained in:
parent
cb01d37338
commit
cc7b1c508a
2 changed files with 34 additions and 30 deletions
|
@ -1,23 +1,5 @@
|
|||
[request-headers.html]
|
||||
type: testharness
|
||||
[Adding valid no-cors request header "content-type: application/x-www-form-urlencoded"]
|
||||
expected: FAIL
|
||||
|
||||
[Adding valid no-cors request header "content-type: application/x-www-form-urlencoded;charset=UTF-8"]
|
||||
expected: FAIL
|
||||
|
||||
[Adding valid no-cors request header "content-type: multipart/form-data"]
|
||||
expected: FAIL
|
||||
|
||||
[Adding valid no-cors request header "content-type: multipart/form-data;charset=UTF-8"]
|
||||
expected: FAIL
|
||||
|
||||
[Adding valid no-cors request header "content-TYPE: text/plain"]
|
||||
expected: FAIL
|
||||
|
||||
[Adding valid no-cors request header "CONTENT-type: text/plain;charset=UTF-8"]
|
||||
expected: FAIL
|
||||
|
||||
[Request should get its content-type from the body if none is provided]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue