[6.0] 77663a93f Polish

Federico G. Schwindt fgsch at lodoss.net
Thu Aug 16 08:52:24 UTC 2018


commit 77663a93f2c351fa86476bed45bcae52fe5f8f49
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Mon Mar 26 13:46:23 2018 -0300

    Polish

diff --git a/bin/varnishd/cache/cache_fetch.c b/bin/varnishd/cache/cache_fetch.c
index eb906b81b..27e7e70c9 100644
--- a/bin/varnishd/cache/cache_fetch.c
+++ b/bin/varnishd/cache/cache_fetch.c
@@ -531,9 +531,6 @@ vbf_figure_out_vfp(struct busyobj *bo)
 		return (0);
 	}
 
-	if (! cache_param->http_gzip_support)
-		bo->do_gzip = bo->do_gunzip = 0;
-
 	/* No body -> done */
 	if (bo->htc->body_status == BS_NONE ||
 	    bo->htc->content_length == 0) {
@@ -543,6 +540,9 @@ vbf_figure_out_vfp(struct busyobj *bo)
 		return (0);
 	}
 
+	if (!cache_param->http_gzip_support)
+		bo->do_gzip = bo->do_gunzip = 0;
+
 	bo->is_gzip = http_HdrIs(bo->beresp, H_Content_Encoding, "gzip");
 	bo->is_gunzip = !http_GetHdr(bo->beresp, H_Content_Encoding, NULL);
 	assert(bo->is_gzip == 0 || bo->is_gunzip == 0);


More information about the varnish-commit mailing list