summaryrefslogtreecommitdiff
path: root/src/HttpRequestCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/HttpRequestCommand.cc')
-rw-r--r--src/HttpRequestCommand.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HttpRequestCommand.cc b/src/HttpRequestCommand.cc
index 8d9919dd..a16e7691 100644
--- a/src/HttpRequestCommand.cc
+++ b/src/HttpRequestCommand.cc
@@ -158,7 +158,7 @@ bool HttpRequestCommand::executeInternal() {
if(getFileEntry()->getPath().empty()) {
getFileEntry()->setPath
(util::createSafePath
- (getDownloadContext()->getDir(),
+ (getOption()->get(PREF_DIR),
util::percentDecode(getRequest()->getFile())));
}
File ctrlfile(getFileEntry()->getPath()+