From: phk Date: Thu, 6 Apr 2006 09:59:30 +0000 (+0000) Subject: Pass Content-Encoding header X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80709723fc12d8d802adaf271ca2f6da3dbeb4c7;p=varnish Pass Content-Encoding header git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@134 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/include/http_headers.h b/varnish-cache/include/http_headers.h index c23945fa..d9258549 100644 --- a/varnish-cache/include/http_headers.h +++ b/varnish-cache/include/http_headers.h @@ -46,3 +46,5 @@ HTTPH("Content-Length", H_Content_Length, 2, 1, 0, 0, 0) HTTPH("Vary", H_Vary, 2, 1, 0, 0, 0) HTTPH("Expires", H_Expires, 2, 1, 0, 0, 0) HTTPH("Location", H_Location, 2, 1, 0, 0, 0) +HTTPH("Content-Encoding", H_Content_Encoding, 2, 1, 0, 0, 0) + diff --git a/varnish-cache/lib/libvcl/vcl_fixed_token.c b/varnish-cache/lib/libvcl/vcl_fixed_token.c index 09d262b1..ca30d1ab 100644 --- a/varnish-cache/lib/libvcl/vcl_fixed_token.c +++ b/varnish-cache/lib/libvcl/vcl_fixed_token.c @@ -463,6 +463,8 @@ vcl_output_lang_h(FILE *f) fputs("HTTPH(\"Vary\", H_Vary, 2, 1, 0, 0, 0)\n", f); fputs("HTTPH(\"Expires\", H_Expires, 2, 1, 0, 0, 0)\n", f); fputs("HTTPH(\"Location\", H_Location, 2, 1, 0, 0, 0)\n", f); + fputs("HTTPH(\"Content-Encoding\", H_Content_Encoding, 2, 1, 0, 0, 0)\n", f); + fputs("\n", f); fputs("#undef HTTPH\n", f); fputs(" const char *uhdr[VCA_UNKNOWNHDR];\n", f); fputs(" unsigned nuhdr;\n", f);