mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8a
This commit is contained in:
parent
26045d7fcb
commit
d1b433a3b3
160 changed files with 1427 additions and 1162 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue