comparison src/http/modules/ngx_http_gzip_filter.c @ 165:894a01c6aea3

nginx-0.0.1-2003-10-29-20:39:05 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 29 Oct 2003 17:39:05 +0000
parents 84036764e215
children 389d7ee9fa60
comparison
equal deleted inserted replaced
164:84036764e215 165:894a01c6aea3
194 ngx_http_add_header(&r->headers_out, ngx_http_headers_out))) 194 ngx_http_add_header(&r->headers_out, ngx_http_headers_out)))
195 { 195 {
196 return NGX_ERROR; 196 return NGX_ERROR;
197 } 197 }
198 198
199 r->headers_out.content_encoding->key.len = 0; 199 r->headers_out.content_encoding->key.len = sizeof("Content-Encoding") - 1;
200 r->headers_out.content_encoding->key.data = NULL; 200 r->headers_out.content_encoding->key.data = "Content-Encoding";
201 r->headers_out.content_encoding->value.len = sizeof("gzip") - 1; 201 r->headers_out.content_encoding->value.len = sizeof("gzip") - 1;
202 r->headers_out.content_encoding->value.data = "gzip"; 202 r->headers_out.content_encoding->value.data = "gzip";
203 203
204 ctx->length = r->headers_out.content_length_n; 204 ctx->length = r->headers_out.content_length_n;
205 r->headers_out.content_length_n = -1; 205 r->headers_out.content_length_n = -1;