Removed integrity check and test for no-cors requests

Also updated request-headers.html manifest hash
This commit is contained in:
Daniel Kolsoi 2017-09-25 19:11:30 -04:00
parent 216f64e4e1
commit 96f9cc77e6
3 changed files with 1 additions and 11 deletions

View file

@ -324,10 +324,6 @@ impl Request {
"The mode is 'no-cors' but the method is not a cors-safelisted method".to_string())); "The mode is 'no-cors' but the method is not a cors-safelisted method".to_string()));
} }
// Step 30.2 // 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); r.Headers().set_guard(Guard::RequestNoCors);
} }

View file

@ -558469,7 +558469,7 @@
"testharness" "testharness"
], ],
"fetch/api/request/request-error.html": [ "fetch/api/request/request-error.html": [
"ff308916884f69b3f4aa8f2017c4d9fe0caf0f00", "0831d11ecf78cddcc2aef2e2adef09429d918922",
"testharness" "testharness"
], ],
"fetch/api/request/request-headers.html": [ "fetch/api/request/request-headers.html": [

View file

@ -51,12 +51,6 @@
"Expect TypeError exception"); "Expect TypeError exception");
},"RequestInit's mode is no-cors and method is not simple"); },"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() { test(function() {
assert_throws(new TypeError() , assert_throws(new TypeError() ,
function() { new Request("", {"mode" : "cors", "cache" : "only-if-cached"}); }, function() { new Request("", {"mode" : "cors", "cache" : "only-if-cached"}); },