comparison src/http/modules/ngx_http_gzip_filter.c @ 292:a472bfb778b3

nginx-0.0.3-2004-03-17-00:26:01 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 16 Mar 2004 21:26:01 +0000
parents 87e73f067470
children 5cfd65b8b0a7
comparison
equal deleted inserted replaced
291:117ccc7c4055 292:a472bfb778b3
215 if (r->headers_out.content_encoding == NULL) { 215 if (r->headers_out.content_encoding == NULL) {
216 return NGX_ERROR; 216 return NGX_ERROR;
217 } 217 }
218 218
219 r->headers_out.content_encoding->key.len = sizeof("Content-Encoding") - 1; 219 r->headers_out.content_encoding->key.len = sizeof("Content-Encoding") - 1;
220 r->headers_out.content_encoding->key.data = "Content-Encoding"; 220 r->headers_out.content_encoding->key.data = (u_char *) "Content-Encoding";
221 r->headers_out.content_encoding->value.len = sizeof("gzip") - 1; 221 r->headers_out.content_encoding->value.len = sizeof("gzip") - 1;
222 r->headers_out.content_encoding->value.data = "gzip"; 222 r->headers_out.content_encoding->value.data = (u_char *) "gzip";
223 223
224 ctx->length = r->headers_out.content_length_n; 224 ctx->length = r->headers_out.content_length_n;
225 r->headers_out.content_length_n = -1; 225 r->headers_out.content_length_n = -1;
226 if (r->headers_out.content_length) { 226 if (r->headers_out.content_length) {
227 r->headers_out.content_length->key.len = 0; 227 r->headers_out.content_length->key.len = 0;