summaryrefslogtreecommitdiff
path: root/src/Request.h
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.h
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.h')
-rw-r--r--src/Request.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/Request.h b/src/Request.h
index 24850584..1dc62617 100644
--- a/src/Request.h
+++ b/src/Request.h
@@ -52,11 +52,7 @@ private:
std::string uri_;
std::string currentUri_;
/**
- * URI previously requested to the server. This is used as Referer
- */
- std::string previousUri_;
- /**
- * URI used as Referer in the initial request
+ * URI used as Referer header field
*/
std::string referer_;
std::string method_;
@@ -97,7 +93,6 @@ public:
// Returns URI passed by setUri()
const std::string& getUri() const { return uri_; }
const std::string& getCurrentUri() const { return currentUri_; }
- const std::string& getPreviousUri() const { return previousUri_; }
const std::string& getReferer() const { return referer_; }
void setReferer(const std::string& uri);
const std::string& getProtocol() const { return us_.protocol; }