mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
swap w3c spec link for whatwg, removed user-agent from disallowed headers
This commit is contained in:
parent
c375ad5e95
commit
7c3a8d3f5b
1 changed files with 2 additions and 2 deletions
|
@ -425,7 +425,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
|
||||||
Some(s) => {
|
Some(s) => {
|
||||||
// Step 5
|
// Step 5
|
||||||
// Disallowed headers and header prefixes:
|
// Disallowed headers and header prefixes:
|
||||||
// https://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader-method
|
// https://fetch.spec.whatwg.org/#forbidden-header-name
|
||||||
let disallowedHeaders =
|
let disallowedHeaders =
|
||||||
["accept-charset", "accept-encoding",
|
["accept-charset", "accept-encoding",
|
||||||
"access-control-request-headers",
|
"access-control-request-headers",
|
||||||
|
@ -434,7 +434,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
|
||||||
"cookie", "cookie2", "date", "dnt",
|
"cookie", "cookie2", "date", "dnt",
|
||||||
"expect", "host", "keep-alive", "origin",
|
"expect", "host", "keep-alive", "origin",
|
||||||
"referer", "te", "trailer", "transfer-encoding",
|
"referer", "te", "trailer", "transfer-encoding",
|
||||||
"upgrade", "user-agent", "via"];
|
"upgrade", "via"];
|
||||||
|
|
||||||
let disallowedHeaderPrefixes = ["sec-", "proxy-"];
|
let disallowedHeaderPrefixes = ["sec-", "proxy-"];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue