1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-23 16:40:37 +00:00

Fix Middleware::response not run if Err in start

This commit is contained in:
Josh Leeb-du Toit 2018-06-03 16:35:03 +10:00
parent ea018e0ad6
commit d95befbe81

View file

@ -263,7 +263,7 @@ impl<S: 'static, H: PipelineHandler<S>> StartMiddlewares<S, H> {
_s: PhantomData, _s: PhantomData,
}) })
} }
Err(err) => return ProcessResponse::init(err.into()), Err(err) => return RunMiddlewares::init(info, err.into()),
} }
} }
} }
@ -297,13 +297,13 @@ impl<S: 'static, H: PipelineHandler<S>> StartMiddlewares<S, H> {
continue 'outer; continue 'outer;
} }
Err(err) => { Err(err) => {
return Some(ProcessResponse::init(err.into())) return Some(RunMiddlewares::init(info, err.into()))
} }
} }
} }
} }
} }
Err(err) => return Some(ProcessResponse::init(err.into())), Err(err) => return Some(RunMiddlewares::init(info, err.into())),
} }
} }
} }