mirror of https://github.com/aria2/aria2
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Refer to option value of PREF_OUT only in download_helper. * src/FtpNegotiationCommand.cc * src/HttpResponseCommand.ccpull/1/head
parent
d33c7c7db1
commit
9f6c187be4
|
@ -1,3 +1,9 @@
|
|||
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Refer to option value of PREF_OUT only in download_helper.
|
||||
* src/FtpNegotiationCommand.cc
|
||||
* src/HttpResponseCommand.cc
|
||||
|
||||
2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Now addUri XML-RPC method accepts BitTorrent Magnet URI.
|
||||
|
|
|
@ -334,7 +334,7 @@ bool FtpNegotiationCommand::sendSize() {
|
|||
bool FtpNegotiationCommand::onFileSizeDetermined(uint64_t totalLength)
|
||||
{
|
||||
_fileEntry->setLength(totalLength);
|
||||
if(getOption()->get(PREF_OUT).empty()) {
|
||||
if(_fileEntry->getPath().empty()) {
|
||||
_fileEntry->setPath
|
||||
(strconcat(getDownloadContext()->getDir(),
|
||||
"/", util::urldecode(req->getFile())));
|
||||
|
|
|
@ -129,9 +129,7 @@ bool HttpResponseCommand::executeInternal()
|
|||
if(_requestGroup->getPieceStorage().isNull()) {
|
||||
uint64_t totalLength = httpResponse->getEntityLength();
|
||||
_fileEntry->setLength(totalLength);
|
||||
// We assume that in this context
|
||||
// DownloadContext::getFileEntries().size() == 1
|
||||
if(getOption()->get(PREF_OUT).empty()) {
|
||||
if(_fileEntry->getPath().empty()) {
|
||||
_fileEntry->setPath
|
||||
(strconcat(getDownloadContext()->getDir(),
|
||||
"/", httpResponse->determinFilename()));
|
||||
|
|
Loading…
Reference in New Issue