Remove unnecessary fields in Redirect Response.

This commit is contained in:
Sergio Benitez 2017-01-06 00:42:10 -06:00
parent ef7d18f15a
commit 8f8dde812d
1 changed files with 1 additions and 2 deletions

View File

@ -102,8 +102,7 @@ impl Responder<'static> for Redirect {
fn respond(self) -> Result<Response<'static>, Status> { fn respond(self) -> Result<Response<'static>, Status> {
Response::build() Response::build()
.status(self.0) .status(self.0)
.header(header::ContentLength(0)) .header(header::Location(self.1))
.header(header::Location(self.1.clone()))
.ok() .ok()
} }
} }