1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-02-22 18:33:18 +01:00

Update to the latest actix-web beta. (#8)

Co-authored-by: LukeMathWalker <contact@palmieri.com>
This commit is contained in:
Luca Palmieri 2021-02-11 08:57:08 +00:00 committed by GitHub
parent 401faaf01d
commit 466b8a65d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ keywords = ["http", "actix-web", "tracing", "logging"]
categories = ["asynchronous", "web-programming"]
[dependencies]
actix-web = "4.0.0-beta.1"
actix-web = "4.0.0-beta.3"
tracing = "0.1.19"
tracing-futures = "0.2.4"
futures = "0.3.5"

View File

@ -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")