aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/fetch/request.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/net/fetch/request.rs')
-rw-r--r--components/net/fetch/request.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net/fetch/request.rs b/components/net/fetch/request.rs
index 7134b054e98..e7bb5914aaa 100644
--- a/components/net/fetch/request.rs
+++ b/components/net/fetch/request.rs
@@ -119,9 +119,9 @@ impl Request {
/// [Basic fetch](http://fetch.spec.whatwg.org#basic-fetch)
pub fn basic_fetch(&mut self) -> Response {
- match self.url.scheme.as_slice() {
+ match &*self.url.scheme {
"about" => match self.url.non_relative_scheme_data() {
- Some(s) if s.as_slice() == "blank" => {
+ Some(s) if &*s == "blank" => {
let mut response = Response::new();
response.headers.set(ContentType(Mime(
TopLevel::Text, SubLevel::Html,