Skip to content

Commit

Permalink
nginx.conf: remove gzip_types when undef
Browse files Browse the repository at this point in the history
  • Loading branch information
3flex committed Feb 8, 2016
1 parent d2496ce commit c7a2941
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/conf.d/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%>

Expand Down

0 comments on commit c7a2941

Please sign in to comment.