Skip to content

Commit

Permalink
Merge pull request #4463 from zerda/fix-add-headers
Browse files Browse the repository at this point in the history
Always set headers with add-headers option
  • Loading branch information
k8s-ci-robot authored Aug 25, 2019
2 parents 7d6ce57 + a44b5cf commit f0e71cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ http {

# Custom headers for response
{{ range $k, $v := $addHeaders }}
add_header {{ $k }} {{ $v | quote }};
more_set_headers {{ printf "%s: %s" $k $v | quote }};
{{ end }}

server_tokens {{ if $cfg.ShowServerTokens }}on{{ else }}off{{ end }};
Expand Down

0 comments on commit f0e71cf

Please sign in to comment.