Correctly set response lifetime 45/7945/1
authorMauro Sardara <[email protected]>
Tue, 8 Aug 2017 19:53:34 +0000 (21:53 +0200)
committerMauro Sardara <[email protected]>
Tue, 8 Aug 2017 19:53:34 +0000 (21:53 +0200)
Change-Id: I9b32d071808f3c10e4a75a982d177e4d2a6c08c4
Signed-off-by: Mauro Sardara <[email protected]>
http-server/response.cc

index ca8dfea..21a93dd 100644 (file)
@@ -46,7 +46,7 @@ const std::chrono::milliseconds &Response::getResponseLifetime() const {
   return response_lifetime_;
 }
 void Response::setResponseLifetime(const std::chrono::milliseconds &response_lifetime) {
-  Response::response_lifetime_ = response_lifetime_;
+  Response::response_lifetime_ = response_lifetime;
 }
 
 void Response::setResponseLength(std::size_t length) {