mirror of https://github.com/aria2/aria2
2010-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Parse original URI when removing same host. * src/HttpResponseCommand.ccpull/1/head
parent
efbfe4c006
commit
f5b3a820ef
|
@ -1,3 +1,8 @@
|
|||
2010-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Parse original URI when removing same host.
|
||||
* src/HttpResponseCommand.cc
|
||||
|
||||
2010-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Data from remote server in HTTP/FTP download are now written to
|
||||
|
|
|
@ -151,9 +151,11 @@ bool HttpResponseCommand::executeInternal()
|
|||
return skipResponseBody(httpResponse);
|
||||
}
|
||||
if(getFileEntry()->isUniqueProtocol()) {
|
||||
// TODO redirection should be considered here. We need to parse
|
||||
// Redirection should be considered here. We need to parse
|
||||
// original URI to get hostname.
|
||||
getFileEntry()->removeURIWhoseHostnameIs(getRequest()->getHost());
|
||||
Request req;
|
||||
req.setUri(getRequest()->getUri());
|
||||
getFileEntry()->removeURIWhoseHostnameIs(req.getHost());
|
||||
}
|
||||
if(getPieceStorage().isNull()) {
|
||||
uint64_t totalLength = httpResponse->getEntityLength();
|
||||
|
|
Loading…
Reference in New Issue