Merge pull request #2616 from coreos-inc/fix-cl-header

Disable gzip on HEAD requests in `v2` endpoints
This commit is contained in:
josephschorr 2017-05-04 12:57:39 -04:00 committed by GitHub
commit 42bf18ae90

View file

@ -105,6 +105,10 @@ location ~ ^/v2 {
return 404;
}
if ($request_method = HEAD ) {
gzip off;
}
# Setting ANY header clears all inherited proxy_set_header directives
proxy_set_header X-Forwarded-For $proper_forwarded_for;
proxy_set_header X-Forwarded-Proto $proper_scheme;