diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-03-06 02:37:48 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-03-06 10:36:49 +0100 |
commit | 7c1dd54895032ece871d6ec727fbd643b8214331 (patch) | |
tree | f59cff6ef1c934e874f4109d9524b9602e30b3f2 /components/script/cors.rs | |
parent | 64fb09ca2d5d077b4d3e0815ee3e094f67b7cf4e (diff) | |
download | servo-7c1dd54895032ece871d6ec727fbd643b8214331.tar.gz servo-7c1dd54895032ece871d6ec727fbd643b8214331.zip |
Update to Rust 2016-03-05
Diffstat (limited to 'components/script/cors.rs')
-rw-r--r-- | components/script/cors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/cors.rs b/components/script/cors.rs index 0c225db1b1d..b5ad670a38c 100644 --- a/components/script/cors.rs +++ b/components/script/cors.rs @@ -324,7 +324,7 @@ pub enum HeaderOrMethod { impl HeaderOrMethod { fn match_header(&self, header_name: &str) -> bool { match *self { - HeaderOrMethod::HeaderData(ref s) => s.eq_ignore_ascii_case(header_name), + HeaderOrMethod::HeaderData(ref s) => (&**s).eq_ignore_ascii_case(header_name), _ => false, } } |