summaryrefslogtreecommitdiff
path: root/src/Request.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-10-01 21:53:28 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-10-01 21:53:28 +0900
commit3080af7370f97b088663ce3dfdcb2a3dfbdf9498 (patch)
treef9a4e07631775729dc3402d4323950c07da1da24 /src/Request.cc
parent667a4725e8554eb5f1f917b5012e3b0dc6c7b039 (diff)
Request: Remove previousUri_
Historically, the previousUri_ has different meaning from referer_, but in the course of development, they have the same value. This change remove previousUri_ in favor of referer_.
Diffstat (limited to 'src/Request.cc')
-rw-r--r--src/Request.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Request.cc b/src/Request.cc
index ad7b934f..09890c1f 100644
--- a/src/Request.cc
+++ b/src/Request.cc
@@ -84,7 +84,6 @@ bool Request::setUri(const std::string& uri) {
}
bool Request::resetUri() {
- previousUri_ = referer_;
supportsPersistentConnection_ = true;
setConnectedAddrInfo(A2STR::NIL, A2STR::NIL, 0);
return parseUri(uri_);
@@ -92,7 +91,7 @@ bool Request::resetUri() {
void Request::setReferer(const std::string& uri)
{
- referer_ = previousUri_ = removeFragment(uri);
+ referer_ = removeFragment(uri);
}
bool Request::redirectUri(const std::string& uri) {