Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Dev
[PATCH] fix content-length header storage allocation typo
 

Index | Next | Previous | View Flat


knan at redpill-linpro

Feb 8, 2011, 8:26 AM


Views: 233
Permalink
[PATCH] fix content-length header storage allocation typo

---
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

_______________________________________________
varnish-dev mailing list
varnish-dev [at] varnish-cache
http://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Subject User Time
[PATCH] fix content-length header storage allocation typo knan at redpill-linpro Feb 8, 2011, 8:26 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.