nginx.conf: remove gzip_types when undef

This commit is contained in:
Matthew Haughton 2016-02-08 16:25:25 -05:00
parent 6689f3025d
commit fc905b0d7a

View file

@ -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 -%>