mirror of https://github.com/aria2/aria2
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use host and protocol in original URI, because URI selector selects URI based on original URI, not redirected one. * src/Request.ccpull/1/head
parent
46d9f2de63
commit
cb6604c88e
|
@ -1,3 +1,9 @@
|
|||
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Use host and protocol in original URI, because URI selector
|
||||
selects URI based on original URI, not redirected one.
|
||||
* src/Request.cc
|
||||
|
||||
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed the bug which causes segmentation fault with tellWaiting
|
||||
|
|
|
@ -311,7 +311,11 @@ void Request::setMaxPipelinedRequest(unsigned int num)
|
|||
|
||||
const SharedHandle<PeerStat>& Request::initPeerStat()
|
||||
{
|
||||
_peerStat.reset(new PeerStat(0, _host, _protocol));
|
||||
// Use host and protocol in original URI, because URI selector
|
||||
// selects URI based on original URI, not redirected one.
|
||||
Request origReq;
|
||||
origReq.setUrl(_url);
|
||||
_peerStat.reset(new PeerStat(0, origReq.getHost(), origReq.getProtocol()));
|
||||
return _peerStat;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue