diff options
Diffstat (limited to 'components/script/cors.rs')
-rw-r--r-- | components/script/cors.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/cors.rs b/components/script/cors.rs index 35111966fde..108f37790a3 100644 --- a/components/script/cors.rs +++ b/components/script/cors.rs @@ -106,10 +106,10 @@ impl CORSRequest { } pub fn http_fetch_async(&self, - listener: Box<AsyncCORSResponseListener+Send>, - script_chan: Box<ScriptChan+Send>) { + listener: Box<AsyncCORSResponseListener + Send>, + script_chan: Box<ScriptChan + Send>) { struct CORSContext { - listener: Box<AsyncCORSResponseListener+Send>, + listener: Box<AsyncCORSResponseListener + Send>, response: RefCell<Option<CORSResponse>>, } @@ -341,7 +341,7 @@ pub struct CORSCacheEntry { } impl CORSCacheEntry { - fn new(origin:Url, + fn new(origin: Url, url: Url, max_age: u32, credentials: bool, |