diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-03-01 15:28:03 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-03-01 15:28:03 +0000 |
| commit | 44e1dafe7b1fbcb4ea4a1254a3c6742124f0202e (patch) | |
| tree | 118dc9b16943063623216c6456294ceda8b45351 /src/HttpConnection.cc | |
| parent | c9f8c076c350edb04be28a772183cf7ac0902f3a (diff) | |
* HttpConnection.cc:
* common.h: defined the user agent name as macro
Diffstat (limited to 'src/HttpConnection.cc')
| -rw-r--r-- | src/HttpConnection.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HttpConnection.cc b/src/HttpConnection.cc index 3c5b3c97..8122141d 100644 --- a/src/HttpConnection.cc +++ b/src/HttpConnection.cc @@ -39,7 +39,7 @@ void HttpConnection::sendProxyRequest() const { string request = string("CONNECT ")+req->getHost()+":"+Util::llitos(req->getPort())+ string(" HTTP/1.1\r\n")+ - "User-Agent: aria2\r\n"+ + "User-Agent: "+USER_AGENT+"\r\n"+ "Proxy-Connection: close\r\n"+ "Host: "+getHost(req->getHost(), req->getPort())+"\r\n"; if(useProxyAuth()) { @@ -66,7 +66,7 @@ string HttpConnection::createRequest(const Segment& segment) const { req->getCurrentUrl() : ((req->getDir() == "/" ? "/" : req->getDir()+"/")+req->getFile()))+ string(" HTTP/1.1\r\n")+ - "User-Agent: aria2\r\n"+ + "User-Agent: "+USER_AGENT+"\r\n"+ "Connection: close\r\n"+ "Accept: */*\r\n"+ /* */ "Host: "+getHost(req->getHost(), req->getPort())+"\r\n"+ |
