summaryrefslogtreecommitdiff
path: root/src/Request.h
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.h
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.h')
-rw-r--r--src/Request.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Request.h b/src/Request.h
index 1dc62617..92619199 100644
--- a/src/Request.h
+++ b/src/Request.h
@@ -220,6 +220,8 @@ public:
static const std::string METHOD_HEAD;
static const int MAX_REDIRECT = 20;
+
+ static const std::string DEFAULT_FILE;
};
} // namespace aria2