mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
makes XMLHttpRequest::SetRequestHeader call dom::headers::is_forbidden_header_name
This commit is contained in:
parent
530b02790b
commit
60549c47ba
2 changed files with 4 additions and 16 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue