mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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) => {
|
||||
// Step 5
|
||||
// Disallowed headers and header prefixes:
|
||||
// https://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader-method
|
||||
// https://fetch.spec.whatwg.org/#forbidden-header-name
|
||||
let disallowedHeaders =
|
||||
["accept-charset", "accept-encoding",
|
||||
"access-control-request-headers",
|
||||
|
@ -434,7 +434,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
|
|||
"cookie", "cookie2", "date", "dnt",
|
||||
"expect", "host", "keep-alive", "origin",
|
||||
"referer", "te", "trailer", "transfer-encoding",
|
||||
"upgrade", "user-agent", "via"];
|
||||
"upgrade", "via"];
|
||||
|
||||
let disallowedHeaderPrefixes = ["sec-", "proxy-"];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue