comparison src/http/modules/ngx_http_gzip_filter.c @ 416:b9bd635011de

nginx-0.0.10-2004-09-06-22:45:00 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 06 Sep 2004 18:45:00 +0000
parents 3c56e834be46
children 1fa5daf7558e
comparison
equal deleted inserted replaced
415:3c56e834be46 416:b9bd635011de
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 = ngx_push_list(&r->headers_out.headers); 300 r->headers_out.content_encoding = ngx_list_push(&r->headers_out.headers);
301 if (r->headers_out.content_encoding == NULL) { 301 if (r->headers_out.content_encoding == NULL) {
302 return NGX_ERROR; 302 return NGX_ERROR;
303 } 303 }
304 304
305 r->headers_out.content_encoding->key.len = sizeof("Content-Encoding") - 1; 305 r->headers_out.content_encoding->key.len = sizeof("Content-Encoding") - 1;