mirror of https://github.com/aria2/aria2
* Make Request-URI an absolute path. Some servers cannot permit
absoluteURI as Request-URI.pull/1/head
parent
8b1c7b0967
commit
6abf60448e
|
@ -1,5 +1,7 @@
|
|||
2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
* Make Request-URI an absolute path. Some servers cannot permit
|
||||
absoluteURI as Request-URI.
|
||||
* Added Referer support.
|
||||
* Added referer command-line option.
|
||||
* Added rety-wait command-line option.
|
||||
|
|
|
@ -53,8 +53,8 @@ string HttpConnection::getHost(const string& host, int port) {
|
|||
|
||||
string HttpConnection::createRequest(const Request* req, const Segment& segment) {
|
||||
string request = string("GET ")+
|
||||
req->getCurrentUrl()+
|
||||
//(req->getDir() == "/" ? "/" : req->getDir()+"/")+req->getFile()+
|
||||
//req->getCurrentUrl()+
|
||||
(req->getDir() == "/" ? "/" : req->getDir()+"/")+req->getFile()+
|
||||
string(" HTTP/1.1\r\n")+
|
||||
"Referer: "+req->getPreviousUrl()+"\r\n"+
|
||||
"User-Agent: aria2\r\n"+
|
||||
|
|
Loading…
Reference in New Issue