Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_gzip_filter.c @ 415:3c56e834be46
nginx-0.0.10-2004-09-05-23:54:02 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 05 Sep 2004 19:54:02 +0000 |
parents | 199cd29f35a3 |
children | b9bd635011de |
comparison
equal
deleted
inserted
replaced
414:388a842cbbe1 | 415:3c56e834be46 |
---|---|
295 | 295 |
296 ngx_http_create_ctx(r, ctx, ngx_http_gzip_filter_module, | 296 ngx_http_create_ctx(r, ctx, ngx_http_gzip_filter_module, |
297 sizeof(ngx_http_gzip_ctx_t), NGX_ERROR); | 297 sizeof(ngx_http_gzip_ctx_t), NGX_ERROR); |
298 ctx->request = r; | 298 ctx->request = r; |
299 | 299 |
300 r->headers_out.content_encoding = | 300 r->headers_out.content_encoding = ngx_push_list(&r->headers_out.headers); |
301 ngx_http_add_header(&r->headers_out, ngx_http_headers_out); | |
302 if (r->headers_out.content_encoding == NULL) { | 301 if (r->headers_out.content_encoding == NULL) { |
303 return NGX_ERROR; | 302 return NGX_ERROR; |
304 } | 303 } |
305 | 304 |
306 r->headers_out.content_encoding->key.len = sizeof("Content-Encoding") - 1; | 305 r->headers_out.content_encoding->key.len = sizeof("Content-Encoding") - 1; |