diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-04-27 04:09:08 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-04-27 04:09:08 +0000 |
| commit | 4663902500c3ef94002cc9b646043680c2d2a181 (patch) | |
| tree | 402721ee9fbcb72e74ee35790a488ab4b1a59ffd /src/HttpRequest.h | |
| parent | 1ef99931e131343f069a4b74edfc06196d72d85b (diff) | |
2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed query part from filename in HTTP download. The query part means
the substring after "?" in URL. Firefox seems do the same thing.
A query part is sometimes very long and not suitable to filename,
so I think it is better to remove it from filename.
* src/HttpRequest.cc
* src/HttpRequest.h
* src/Request.cc
* src/Request.h
* test/HttpRequestTest.cc
* test/RequestTest.cc
Diffstat (limited to 'src/HttpRequest.h')
| -rw-r--r-- | src/HttpRequest.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/HttpRequest.h b/src/HttpRequest.h index 6a1cc124..ddf0ecfe 100644 --- a/src/HttpRequest.h +++ b/src/HttpRequest.h @@ -108,6 +108,8 @@ public: std::string getFile() const; + std::string getQuery() const; + std::string getPreviousURI() const; SharedHandle<Range> getRange() const; |
