Skip to content

Commit

Permalink
swap w3c spec link for whatwg, removed user-agent from disallowed hea…
Browse files Browse the repository at this point in the history
…ders
  • Loading branch information
Chandler Abraham authored and jdm committed Feb 26, 2016
1 parent c375ad5 commit 7c3a8d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/script/dom/xmlhttprequest.rs
Expand Up @@ -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",
Expand All @@ -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-"];

Expand Down

0 comments on commit 7c3a8d3

Please sign in to comment.