From 8f8dde812d46b19eb1d9e77ac09292f48a640df3 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Fri, 6 Jan 2017 00:42:10 -0600 Subject: [PATCH] Remove unnecessary fields in Redirect Response. --- lib/src/response/redirect.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/response/redirect.rs b/lib/src/response/redirect.rs index 8b9b39f1..f9cb7dd2 100644 --- a/lib/src/response/redirect.rs +++ b/lib/src/response/redirect.rs @@ -102,8 +102,7 @@ impl Responder<'static> for Redirect { fn respond(self) -> Result, Status> { Response::build() .status(self.0) - .header(header::ContentLength(0)) - .header(header::Location(self.1.clone())) + .header(header::Location(self.1)) .ok() } }