aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2017-08-08 21:53:34 +0200
committerMauro Sardara <msardara+fdio@cisco.com>2017-08-08 21:53:34 +0200
commitd80dcfd06b5be6b950cde09194161ff0f10dde27 (patch)
treed832ae2021ba30247dd7e9f1752062969bec28f7
parentcbc04c22d00db043716fc695d40937252ebbf9ee (diff)
Correctly set response lifetime
Change-Id: I9b32d071808f3c10e4a75a982d177e4d2a6c08c4 Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
-rw-r--r--http-server/response.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-server/response.cc b/http-server/response.cc
index ca8dfea2..21a93dd8 100644
--- a/http-server/response.cc
+++ b/http-server/response.cc
@@ -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) {