Make the fetch target non-optional.

This commit is contained in:
Ms2ger 2016-12-02 15:49:41 +01:00
parent 6f2606cdee
commit 217f44b67a
4 changed files with 32 additions and 49 deletions

View file

@ -533,7 +533,7 @@ pub fn http_fetch(request: Rc<Request>,
cors_flag: bool,
cors_preflight_flag: bool,
authentication_fetch_flag: bool,
target: &mut Target,
target: Target,
done_chan: &mut DoneChannel,
context: &FetchContext)
-> Response {
@ -707,7 +707,7 @@ fn http_redirect_fetch(request: Rc<Request>,
cache: &mut CorsCache,
response: Response,
cors_flag: bool,
target: &mut Target,
target: Target,
done_chan: &mut DoneChannel,
context: &FetchContext)
-> Response {