mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 06:39:22 +02:00
remove responsebody indirection from response (#2201)
This commit is contained in:
@ -96,8 +96,7 @@ impl Service<ServiceRequest> for FilesService {
|
||||
return Box::pin(ok(req.into_response(
|
||||
HttpResponse::Found()
|
||||
.insert_header((header::LOCATION, redirect_to))
|
||||
.body("")
|
||||
.into_body(),
|
||||
.finish(),
|
||||
)));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user