mirror of
https://github.com/actix/actix-extras.git
synced 2025-07-01 12:15:08 +02:00
Update to the latest actix-web beta. (#8)
Co-authored-by: LukeMathWalker <contact@palmieri.com>
This commit is contained in:
@ -167,11 +167,11 @@ where
|
||||
type Error = Error;
|
||||
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>>>>;
|
||||
|
||||
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
||||
fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
||||
self.service.poll_ready(cx)
|
||||
}
|
||||
|
||||
fn call(&mut self, req: ServiceRequest) -> Self::Future {
|
||||
fn call(&self, req: ServiceRequest) -> Self::Future {
|
||||
let user_agent = req
|
||||
.headers()
|
||||
.get("User-Agent")
|
||||
|
Reference in New Issue
Block a user