r1534 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sun Jun 24 11:23:41 CEST 2007


Author: phk
Date: 2007-06-24 11:23:38 +0200 (Sun, 24 Jun 2007)
New Revision: 1534

Modified:
   trunk/varnish-cache/bin/varnishd/cache.h
   trunk/varnish-cache/bin/varnishd/cache_http.c
Log:
Remove http_IsBodyless, it is no longer used.


Modified: trunk/varnish-cache/bin/varnishd/cache.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache.h	2007-06-18 07:52:19 UTC (rev 1533)
+++ trunk/varnish-cache/bin/varnishd/cache.h	2007-06-24 09:23:38 UTC (rev 1534)
@@ -405,7 +405,6 @@
 int http_GetHdr(struct http *hp, const char *hdr, char **ptr);
 int http_GetHdrField(struct http *hp, const char *hdr, const char *field, char **ptr);
 int http_GetStatus(struct http *hp);
-int http_IsBodyless(struct http *hp);
 int http_HdrIs(struct http *hp, const char *hdr, const char *val);
 int http_GetTail(struct http *hp, unsigned len, char **b, char **e);
 int http_Read(struct http *hp, int fd, void *b, unsigned len);

Modified: trunk/varnish-cache/bin/varnishd/cache_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_http.c	2007-06-18 07:52:19 UTC (rev 1533)
+++ trunk/varnish-cache/bin/varnishd/cache_http.c	2007-06-24 09:23:38 UTC (rev 1534)
@@ -383,21 +383,6 @@
 	    NULL /* XXX */, 10));
 }
 
-/*---------------------------------------------------------------------
- * All 1xx (informational), 204 (no content), and 304 (not modified)
- * responses MUST NOT include a message-body.
- */
-
-int
-http_IsBodyless(struct http *hp)
-{
-	int status;
-
-	status = http_GetStatus(hp);
-	return (status >= 100 && status < 200)
-		|| status == 204 || status == 304;
-}
-
 /*--------------------------------------------------------------------
  * Dissect the headers of the HTTP protocol message.
  * Detect conditionals (headers which start with '^[Ii][Ff]-')




More information about the varnish-commit mailing list