aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/cors.rs
diff options
context:
space:
mode:
authorJack Moffitt <jack@metajack.im>2014-11-05 12:33:11 -0700
committerGlenn Watson <gw@intuitionlibrary.com>2014-11-13 11:17:43 +1000
commitd1b433a3b3bab353f320b2f39fa953ce326d2d55 (patch)
treed7a197abb65827b36c47e6b5c3adcce9071643d3 /components/script/cors.rs
parent26045d7fcbab8851fbefe2851cd904203f8fd8dd (diff)
downloadservo-d1b433a3b3bab353f320b2f39fa953ce326d2d55.tar.gz
servo-d1b433a3b3bab353f320b2f39fa953ce326d2d55.zip
Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8a
Diffstat (limited to 'components/script/cors.rs')
-rw-r--r--components/script/cors.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/cors.rs b/components/script/cors.rs
index 5bcb737a504..50e69ca333f 100644
--- a/components/script/cors.rs
+++ b/components/script/cors.rs
@@ -9,10 +9,9 @@
//! This library will eventually become the core of the Fetch crate
//! with CORSRequest being expanded into FetchRequest (etc)
-use std::ascii::{StrAsciiExt, OwnedStrAsciiExt};
+use std::ascii::{AsciiExt, OwnedAsciiExt};
use std::from_str::FromStr;
use std::io::BufReader;
-use std::str::StrSlice;
use time;
use time::{now, Timespec};
@@ -155,7 +154,7 @@ impl CORSRequest {
// Step 12
match response.status.code() {
- 200 .. 299 => {}
+ 200 ... 299 => {}
_ => return error
}
cors_response.headers = response.headers.clone();