mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Removed integrity check and test for no-cors requests
Also updated request-headers.html manifest hash
This commit is contained in:
parent
216f64e4e1
commit
96f9cc77e6
3 changed files with 1 additions and 11 deletions
|
@ -324,10 +324,6 @@ impl Request {
|
|||
"The mode is 'no-cors' but the method is not a cors-safelisted method".to_string()));
|
||||
}
|
||||
// Step 30.2
|
||||
if !borrowed_request.integrity_metadata.is_empty() {
|
||||
return Err(Error::Type("Integrity metadata is not an empty string".to_string()));
|
||||
}
|
||||
// Step 30.3
|
||||
r.Headers().set_guard(Guard::RequestNoCors);
|
||||
}
|
||||
|
||||
|
|
|
@ -558469,7 +558469,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"fetch/api/request/request-error.html": [
|
||||
"ff308916884f69b3f4aa8f2017c4d9fe0caf0f00",
|
||||
"0831d11ecf78cddcc2aef2e2adef09429d918922",
|
||||
"testharness"
|
||||
],
|
||||
"fetch/api/request/request-headers.html": [
|
||||
|
|
|
@ -51,12 +51,6 @@
|
|||
"Expect TypeError exception");
|
||||
},"RequestInit's mode is no-cors and method is not simple");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError() ,
|
||||
function() { new Request("", {"mode" : "no-cors", "integrity" : "not an empty string"}); },
|
||||
"Expect TypeError exception");
|
||||
},"RequestInit's mode is no-cors and integrity is not empty");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError() ,
|
||||
function() { new Request("", {"mode" : "cors", "cache" : "only-if-cached"}); },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue