makes XMLHttpRequest::SetRequestHeader call dom::headers::is_forbidden_header_name

This commit is contained in:
Malisa Smith 2016-07-19 13:17:59 -07:00
parent 530b02790b
commit 60549c47ba
2 changed files with 4 additions and 16 deletions

View file

@ -102,7 +102,7 @@ fn is_forbidden_response_header(name: &str) -> bool {
}
// https://fetch.spec.whatwg.org/#forbidden-header-name
fn is_forbidden_header_name(name: &str) -> bool {
pub fn is_forbidden_header_name(name: &str) -> bool {
let disallowed_headers =
["accept-charset", "accept-encoding",
"access-control-request-headers",