mirror of
https://github.com/actix/actix-web.git
synced 2024-12-18 14:16:47 +00:00
Fix Middleware::response not run if Err in start
This commit is contained in:
parent
ea018e0ad6
commit
d95befbe81
1 changed files with 3 additions and 3 deletions
|
@ -263,7 +263,7 @@ impl<S: 'static, H: PipelineHandler<S>> StartMiddlewares<S, H> {
|
|||
_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;
|
||||
}
|
||||
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())),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue