Allow usage of non_idempotent option in proxy_next_upstream

This commit is contained in:
Ilya Saulenko 2017-10-10 13:18:45 +03:00
parent 132caff5a9
commit 9a9c612f5a
3 changed files with 49 additions and 11 deletions

View file

@ -788,7 +788,7 @@ stream {
proxy_cookie_path {{ $location.Proxy.CookiePath }};
# In case of errors try the next upstream server before returning an error
proxy_next_upstream {{ buildNextUpstream $location.Proxy.NextUpstream }}{{ if $all.Cfg.RetryNonIdempotent }} non_idempotent{{ end }};
proxy_next_upstream {{ buildNextUpstream $location.Proxy.NextUpstream $all.Cfg.RetryNonIdempotent }};
{{/* rewrite only works if the content is not compressed */}}
{{ if $location.Rewrite.AddBaseURL }}