[master] fbf2c9863 Clear Transfer-Encoding for ESI subrequests

Nils Goroll nils.goroll at uplex.de
Mon Jun 20 15:44:06 UTC 2022


commit fbf2c98638057b60c09767eaa4e3d0c53f3ecf74
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Jun 20 17:33:58 2022 +0200

    Clear Transfer-Encoding for ESI subrequests
    
    While, before this change, subrequests would see the Transfer-Encoding
    on the client side, I could not find a case where this caused any harm,
    so this change, presumably, is only to prevent potential future issues.

diff --git a/bin/varnishd/cache/cache_esi_deliver.c b/bin/varnishd/cache/cache_esi_deliver.c
index b214e9e94..9414c324d 100644
--- a/bin/varnishd/cache/cache_esi_deliver.c
+++ b/bin/varnishd/cache/cache_esi_deliver.c
@@ -174,6 +174,7 @@ ved_include(struct req *preq, const char *src, const char *host,
 
 	/* Client content already taken care of */
 	http_Unset(req->http, H_Content_Length);
+	http_Unset(req->http, H_Transfer_Encoding);
 	req->req_body_status = BS_NONE;
 
 	AZ(req->vcl);


More information about the varnish-commit mailing list