From fc905b0d7a3e6d6af8d5ec3beba3e8fbf947a327 Mon Sep 17 00:00:00 2001 From: Matthew Haughton <3flex@users.noreply.github.com> Date: Mon, 8 Feb 2016 16:25:25 -0500 Subject: [PATCH 1/2] nginx.conf: remove gzip_types when undef --- templates/conf.d/nginx.conf.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/conf.d/nginx.conf.erb b/templates/conf.d/nginx.conf.erb index ccf8fc108..f239d9fe9 100644 --- a/templates/conf.d/nginx.conf.erb +++ b/templates/conf.d/nginx.conf.erb @@ -74,7 +74,9 @@ http { <% if @gzip_proxied -%> gzip_proxied <%= @gzip_proxied %>; <% end -%> +<% if @gzip_types -%> gzip_types <%= @gzip_types.kind_of?(Array) ? @gzip_types.join(' ') : @gzip_types %>; +<% end -%> gzip_vary <%= @gzip_vary %>; <% end -%> From 1d4fb7ad07d949d878bfb21fd794493dd4b31f77 Mon Sep 17 00:00:00 2001 From: Matthew Haughton <3flex@users.noreply.github.com> Date: Mon, 8 Feb 2016 16:26:32 -0500 Subject: [PATCH 2/2] config: gzip_types undef by default No change to server behaviour. Fixes #748 --- manifests/config.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/config.pp b/manifests/config.pp index c56373614..ff9392c46 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -60,7 +60,7 @@ $gzip_min_length = 20, $gzip_http_version = 1.1, $gzip_proxied = 'off', - $gzip_types = 'text/html', + $gzip_types = undef, $gzip_vary = 'off', $http_cfg_append = false, $http_tcp_nodelay = 'on',