mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix compile errors.
This commit is contained in:
parent
e546637d91
commit
50af352605
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ impl CORSRequest {
|
|||
match &*destination.scheme {
|
||||
// As per (https://fetch.spec.whatwg.org/#main-fetch 5.1.9), about URLs can be fetched
|
||||
// the same as a basic request.
|
||||
"about" if destination.path == Some("blank") => Ok(None),
|
||||
"about" if destination.path() == Some(&["blank".to_owned()]) => Ok(None),
|
||||
// As per (https://fetch.spec.whatwg.org/#main-fetch 5.1.9), data URLs can be fetched
|
||||
// the same as a basic request if the request's method is GET and the
|
||||
// same-origin data-URL flag is set.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue