1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-01 08:45:10 +02:00

enable scope middleware with generic res body. (#2492)

Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
fakeshadow
2021-12-08 00:26:28 +08:00
committed by GitHub
parent 6460e67f84
commit 069cf2da07
3 changed files with 30 additions and 25 deletions

View File

@ -154,7 +154,7 @@ mod tests {
let srv = init_service(
App::new().service(
web::scope("app")
.wrap(Compat::new(logger))
.wrap(logger)
.wrap(Compat::new(compress))
.service(web::resource("/test").route(web::get().to(HttpResponse::Ok))),
),