Skip to content

Commit

Permalink
Merge pull request voxpupuli#765 from jfryman/3flex/fix-748
Browse files Browse the repository at this point in the history
Allow removal of gzip_types from the config
  • Loading branch information
3flex committed Feb 15, 2016
2 parents d2496ce + 0ad6bc7 commit 10056b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
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 10056b8

Please sign in to comment.