comparison src/http/modules/ngx_http_gzip_filter_module.c @ 4990:e2794322ec76

Fixed HEAD requests handling when proxying is used (closes #261).
author Valentin Bartenev <vbart@nginx.com>
date Mon, 24 Dec 2012 17:32:53 +0000
parents 58dfef910ccd
children 4b744a2fb1a6
comparison
equal deleted inserted replaced
4989:eababa1dc446 4990:e2794322ec76
319 ngx_chain_t *cl; 319 ngx_chain_t *cl;
320 ngx_http_gzip_ctx_t *ctx; 320 ngx_http_gzip_ctx_t *ctx;
321 321
322 ctx = ngx_http_get_module_ctx(r, ngx_http_gzip_filter_module); 322 ctx = ngx_http_get_module_ctx(r, ngx_http_gzip_filter_module);
323 323
324 if (ctx == NULL || ctx->done) { 324 if (ctx == NULL || ctx->done || r->header_only) {
325 return ngx_http_next_body_filter(r, in); 325 return ngx_http_next_body_filter(r, in);
326 } 326 }
327 327
328 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 328 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
329 "http gzip filter"); 329 "http gzip filter");