mirror of https://github.com/rwf2/Rocket.git
Remove unnecessary fields in Redirect Response.
This commit is contained in:
parent
ef7d18f15a
commit
8f8dde812d
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue