From c7a29417626178049464e4be46dea0306f819889 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] 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 -%>