mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 10:55:00 +00:00
This commit is contained in:
@@ -53,6 +53,7 @@ string HttpConnection::getHost(const string& host, int port) {
|
||||
|
||||
string HttpConnection::createRequest(const Request* req, const Segment& segment) {
|
||||
string request = string("GET ")+
|
||||
// some servers cannot permit absolute URI as requet URI.
|
||||
//req->getCurrentUrl()+
|
||||
(req->getDir() == "/" ? "/" : req->getDir()+"/")+req->getFile()+
|
||||
string(" HTTP/1.1\r\n")+
|
||||
|
||||
Reference in New Issue
Block a user