Mercurial > hg > nginx
comparison src/http/modules/ngx_http_gzip_filter_module.c @ 5054:be9ce2946a8e stable-1.2
Merge of r4991: fixed proxied HEAD requests with gzip enabled.
Fixed HEAD requests handling when proxying is used (ticket #261).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 11 Feb 2013 14:39:49 +0000 |
parents | 63a6b6d70826 |
children |
comparison
equal
deleted
inserted
replaced
5053:004af18ddb86 | 5054:be9ce2946a8e |
---|---|
318 ngx_chain_t *cl; | 318 ngx_chain_t *cl; |
319 ngx_http_gzip_ctx_t *ctx; | 319 ngx_http_gzip_ctx_t *ctx; |
320 | 320 |
321 ctx = ngx_http_get_module_ctx(r, ngx_http_gzip_filter_module); | 321 ctx = ngx_http_get_module_ctx(r, ngx_http_gzip_filter_module); |
322 | 322 |
323 if (ctx == NULL || ctx->done) { | 323 if (ctx == NULL || ctx->done || r->header_only) { |
324 return ngx_http_next_body_filter(r, in); | 324 return ngx_http_next_body_filter(r, in); |
325 } | 325 } |
326 | 326 |
327 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 327 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
328 "http gzip filter"); | 328 "http gzip filter"); |