فهرست منبع

2007-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

	* src/HttpRequest.cc (createRequest):
	Fixed the bug that user-agent is URL-encoded.
Tatsuhiro Tsujikawa 18 سال پیش
والد
کامیت
dd86ebdc1b
2فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 5 0
      ChangeLog
  2. 1 1
      src/HttpRequest.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2007-10-06  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
+
+	* src/HttpRequest.cc (createRequest):
+	Fixed the bug that user-agent is URL-encoded.
+
 2007-09-15  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 
 	Fixed: control file cannot be saved in the second attempt because of

+ 1 - 1
src/HttpRequest.cc

@@ -83,7 +83,7 @@ string HttpRequest::createRequest() const
   }
   requestLine +=
     string(" HTTP/1.1\r\n")+
-    "User-Agent: "+Util::urlencode(userAgent)+"\r\n"+
+    "User-Agent: "+userAgent+"\r\n"+
     "Accept: */*\r\n"+        /* */
     "Host: "+getHostText(getHost(), getPort())+"\r\n"+
     "Pragma: no-cache\r\n"+