summaryrefslogtreecommitdiff
path: root/src/Request.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-05-08 21:41:32 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-05-08 21:49:04 +0900
commitf60e55cece6eeee5357b68557ba8ddd4f8051b74 (patch)
treea09099c3e33217804897afba12a09834ebe4bb2b /src/Request.cc
parent84f1a15e10e7d6a916cc872cb84d0a4384d61c47 (diff)
Use index.html as filename for conditional-get when file is missing in URI
Previously we disabled conditional-get if file part is missing in URI. But we use constant string "index.html" in this case, so we can do the same to determine the modification time. In this patch, if we have file part in URI, we are not going to set absolute file path in FileEntry, since it prevents content-disposition from working.
Diffstat (limited to 'src/Request.cc')
-rw-r--r--src/Request.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Request.cc b/src/Request.cc
index 09890c1f..0520e5f0 100644
--- a/src/Request.cc
+++ b/src/Request.cc
@@ -50,6 +50,8 @@ const std::string Request::METHOD_GET = "GET";
const std::string Request::METHOD_HEAD = "HEAD";
+const std::string Request::DEFAULT_FILE = "index.html";
+
Request::Request():
method_(METHOD_GET),
tryCount_(0),