[PATCH] fix content-length header storage allocation typo

Erik Inge Bolsø knan at redpill-linpro.com
Tue Feb 8 17:26:11 CET 2011


---
 bin/varnishd/cache_center.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

In the not-even-compile-tested-but-looks-obvious category.

diff --git a/bin/varnishd/cache_center.c b/bin/varnishd/cache_center.c
index 25d57cb..6ff8423 100644
--- a/bin/varnishd/cache_center.c
+++ b/bin/varnishd/cache_center.c
@@ -654,7 +654,7 @@ cnt_fetch(struct sess *sp)
 	 * Space for producing a Content-Length: header including padding
 	 * A billion gigabytes is enough for anybody.
 	 */
-	l += strlen("Content-Encoding: XxxXxxXxxXxxXxxXxx" + sizeof(void *));
+	l += strlen("Content-Length: XxxXxxXxxXxxXxxXxx") + sizeof(void *);
 
 	if (sp->wrk->ttl < sp->t_req + params->shortlived ||
 	    sp->objcore == NULL) 
-- 
1.7.0.4




More information about the varnish-dev mailing list