git-svn: trunk@2910
Nigel Horne authored on 2007/03/06 06:30:35... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Mon Mar 5 19:35:32 GMT 2007 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/mbox.c: Include the clamAV version in the HTTP request (based |
|
4 |
+ on a patch from TK) |
|
5 |
+ |
|
1 | 6 |
Mon Mar 5 19:10:16 GMT 2007 (njh) |
2 | 7 |
---------------------------------- |
3 | 8 |
* libclamav/mbox.c: In experimental mode, correct the GET command |
... | ... |
@@ -4529,10 +4529,12 @@ getURL(struct arg *arg) |
4529 | 4529 |
*/ |
4530 | 4530 |
if(via_proxy) |
4531 | 4531 |
snprintf(buf, sizeof(buf) - 1, |
4532 |
- "GET %s HTTP/1.0\r\nUser-Agent: www.clamav.net\r\n\r\n", url); |
|
4532 |
+ "GET %s HTTP/1.0\r\nUser-Agent: ClamAV %s\r\n\r\n", |
|
4533 |
+ url, VERSION); |
|
4533 | 4534 |
else |
4534 | 4535 |
snprintf(buf, sizeof(buf) - 1, |
4535 |
- "GET /%s HTTP/1.0\r\nUser-Agent: www.clamav.net\r\n\r\n", url); |
|
4536 |
+ "GET /%s HTTP/1.0\r\nUser-Agent: ClamAV %s\r\n\r\n", |
|
4537 |
+ url, VERSION); |
|
4536 | 4538 |
|
4537 | 4539 |
/*cli_dbgmsg("%s", buf);*/ |
4538 | 4540 |
|