r2047 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Sep 26 21:20:18 CEST 2007


Author: phk
Date: 2007-09-26 21:20:17 +0200 (Wed, 26 Sep 2007)
New Revision: 2047

Modified:
   trunk/varnish-cache/bin/varnishd/cache_fetch.c
Log:
another place we can use Tlen


Modified: trunk/varnish-cache/bin/varnishd/cache_fetch.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_fetch.c	2007-09-26 19:15:25 UTC (rev 2046)
+++ trunk/varnish-cache/bin/varnishd/cache_fetch.c	2007-09-26 19:20:17 UTC (rev 2047)
@@ -326,7 +326,7 @@
 	CHECK_OBJ_NOTNULL(sp->backend, BACKEND_MAGIC);
 	/* Filter into object */
 	hp2 = &sp->obj->http;
-	len = pdiff(hp->rx.b, hp->rx.e);
+	len = Tlen(hp->rx);
 	len += 256;		/* margin for content-length etc */
 
 	CHECK_OBJ_NOTNULL(sp->backend, BACKEND_MAGIC);




More information about the varnish-commit mailing list