Merge pull request #2616 from coreos-inc/fix-cl-header
Disable gzip on HEAD requests in `v2` endpoints
This commit is contained in:
commit
42bf18ae90
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue