[master] f31ed40 Remove the clients Accept-Encoding header when we add our own.
Poul-Henning Kamp
phk at varnish-cache.org
Mon Jan 24 10:46:17 CET 2011
commit f31ed40c2198d58ef5fa3cff9a22990285a0acae
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Jan 24 09:45:54 2011 +0000
Remove the clients Accept-Encoding header when we add our own.
diff --git a/bin/varnishd/cache_center.c b/bin/varnishd/cache_center.c
index ec945d2..9ec86fa 100644
--- a/bin/varnishd/cache_center.c
+++ b/bin/varnishd/cache_center.c
@@ -975,6 +975,7 @@ cnt_miss(struct sess *sp)
* client doesn't grok it. We will uncompress for
* the minority of clients which don't.
*/
+ http_Unset(sp->wrk->bereq, H_Accept_Encoding);
http_PrintfHeader(sp->wrk, sp->fd, sp->wrk->bereq,
"Accept-Encoding: gzip");
}
More information about the varnish-commit
mailing list