pull/1/head
Tatsuhiro Tsujikawa 2006-02-18 06:11:20 +00:00
parent 5333c2d58f
commit a64eea14ad
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ string HttpConnection::getHost(const string& host, int port) {
string HttpConnection::createRequest(const Request* req, const Segment& segment) { string HttpConnection::createRequest(const Request* req, const Segment& segment) {
string request = string("GET ")+ string request = string("GET ")+
// some servers cannot permit absolute URI as requet URI.
//req->getCurrentUrl()+ //req->getCurrentUrl()+
(req->getDir() == "/" ? "/" : req->getDir()+"/")+req->getFile()+ (req->getDir() == "/" ? "/" : req->getDir()+"/")+req->getFile()+
string(" HTTP/1.1\r\n")+ string(" HTTP/1.1\r\n")+