Browse code

Remove "Cache-Control: no-cache" from remote_cvdhead()

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1219 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2004/12/27 13:13:23
Showing 2 changed files
... ...
@@ -1,3 +1,9 @@
1
+Mon Dec 27 05:12:29 CET 2004 (tk)
2
+---------------------------------
3
+  * freshclam/manager.c: Remove "Cache-Control: no-cache" from remote_cvdhead()
4
+			 Users behind proxies should only use the DNS method
5
+			 (now default, hardcoded)
6
+
1 7
 Mon Dec 27 05:01:54 CET 2004 (tk)
2 8
 ---------------------------------
3 9
   * freshclam/manager.c: use If-Modified-Since in --no-dns mode (based on code
... ...
@@ -538,7 +538,6 @@ struct cl_cvd *remote_cvdhead(const char *file, int socketfd, const char *hostna
538 538
     sprintf(cmd, "GET %s/%s HTTP/1.1\r\n"
539 539
 	"Host: %s\r\n%s"
540 540
 	"User-Agent: "PACKAGE"/"VERSION"\r\n"
541
-	"Cache-Control: no-cache\r\n"
542 541
 	"Connection: close\r\n"
543 542
 	"Range: bytes=0-511\r\n"
544 543
         "If-Modified-Since: %s\r\n"
... ...
@@ -547,7 +546,6 @@ struct cl_cvd *remote_cvdhead(const char *file, int socketfd, const char *hostna
547 547
     snprintf(cmd, sizeof(cmd), "GET %s/%s HTTP/1.1\r\n"
548 548
 	"Host: %s\r\n%s"
549 549
 	"User-Agent: "PACKAGE"/"VERSION"\r\n"
550
-	"Cache-Control: no-cache\r\n"
551 550
 	"Connection: close\r\n"
552 551
 	"Range: bytes=0-511\r\n"
553 552
         "If-Modified-Since: %s\r\n"