Skip to content
Browse files

avoid re-setting Accept-Encoding for ESI

we should not emit ReqUnset / ReqHeader if A-E is already correct
  • Loading branch information...
nigoroll committed Nov 5, 2019
1 parent e6e7061 commit 6dbfff12dca895534b090ef9283e75f85659fcfa
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/varnishd/cache/cache_esi_deliver.c
@@ -161,9 +161,10 @@ ved_include(struct req *preq, const char *src, const char *host,
http_Unset(req->http, H_Range);

/* Set Accept-Encoding according to what we want */
http_Unset(req->http, H_Accept_Encoding);
if (ecx->isgzip)
http_ForceHeader(req->http, H_Accept_Encoding, "gzip");
http_Unset(req->http, H_Accept_Encoding);

/* Client content already taken care of */
http_Unset(req->http, H_Content_Length);

0 comments on commit 6dbfff1

Please sign in to comment.
You can’t perform that action at this time.