diff options
| author | JimmyZ <jimmy.z.z@gmail.com> | 2016-12-28 00:44:46 +0800 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-12-31 14:11:12 +0900 |
| commit | da730478af0cdae2936053d6f9789cee12c95b7d (patch) | |
| tree | 8c5d9621ec62c5dc49413d899b8a4001abb69706 /src/HttpResponseCommand.cc | |
| parent | f542f84b836b1fd89d89537155ea7e25e07f49be (diff) | |
new option content-disposition-default-utf8
Diffstat (limited to 'src/HttpResponseCommand.cc')
| -rw-r--r-- | src/HttpResponseCommand.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc index 18972575..d0e44803 100644 --- a/src/HttpResponseCommand.cc +++ b/src/HttpResponseCommand.cc @@ -261,8 +261,8 @@ bool HttpResponseCommand::executeInternal() int64_t totalLength = httpResponse->getEntityLength(); fe->setLength(totalLength); if (fe->getPath().empty()) { - auto suffixPath = util::createSafePath(httpResponse->determineFilename()); - + auto suffixPath = util::createSafePath(httpResponse->determineFilename( + getOption()->getAsBool(PREF_CONTENT_DISPOSITION_DEFAULT_UTF8))); fe->setPath(util::applyDir(getOption()->get(PREF_DIR), suffixPath)); fe->setSuffixPath(suffixPath); } |
