Include the clamAV version in the HTTP request

git-svn: trunk@2910
remotes/push_mirror/metadata
Nigel Horne 18 years ago
parent 23d7209ed0
commit 8a894fd8af
  1. 5
      ChangeLog
  2. 6
      libclamav/mbox.c

@ -1,3 +1,8 @@
Mon Mar 5 19:35:32 GMT 2007 (njh)
----------------------------------
* libclamav/mbox.c: Include the clamAV version in the HTTP request (based
on a patch from TK)
Mon Mar 5 19:10:16 GMT 2007 (njh)
----------------------------------
* libclamav/mbox.c: In experimental mode, correct the GET command

@ -4529,10 +4529,12 @@ getURL(struct arg *arg)
*/
if(via_proxy)
snprintf(buf, sizeof(buf) - 1,
"GET %s HTTP/1.0\r\nUser-Agent: www.clamav.net\r\n\r\n", url);
"GET %s HTTP/1.0\r\nUser-Agent: ClamAV %s\r\n\r\n",
url, VERSION);
else
snprintf(buf, sizeof(buf) - 1,
"GET /%s HTTP/1.0\r\nUser-Agent: www.clamav.net\r\n\r\n", url);
"GET /%s HTTP/1.0\r\nUser-Agent: ClamAV %s\r\n\r\n",
url, VERSION);
/*cli_dbgmsg("%s", buf);*/

Loading…
Cancel
Save