diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-03 19:27:29 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-03 19:27:29 +0900 |
| commit | 118626afc47e290be1ae490f5be26523233ccb61 (patch) | |
| tree | 300ee08346453c92b843aac41ab59ef40afdbb31 /src/HttpResponse.cc | |
| parent | 0e55fdf594c21db7759eaa3ac2fddbd6d80422b4 (diff) | |
util::percentDecode now takes iterators as arguments.
Diffstat (limited to 'src/HttpResponse.cc')
| -rw-r--r-- | src/HttpResponse.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/HttpResponse.cc b/src/HttpResponse.cc index 225dd156..993f2604 100644 --- a/src/HttpResponse.cc +++ b/src/HttpResponse.cc @@ -120,7 +120,9 @@ std::string HttpResponse::determinFilename() const util::getContentDispositionFilename (httpHeader_->getFirst(HttpHeader::CONTENT_DISPOSITION)); if(contentDisposition.empty()) { - std::string file = util::percentDecode(httpRequest_->getFile()); + std::string file = + util::percentDecode(httpRequest_->getFile().begin(), + httpRequest_->getFile().end()); if(file.empty()) { return "index.html"; } else { |
