Mercurial > hg > nginx
comparison src/http/ngx_http_special_response.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 | da8c5707af39 |
comparison
equal
deleted
inserted
replaced
415:3c56e834be46 | 416:b9bd635011de |
---|---|
280 { | 280 { |
281 r->headers_out.content_length_n += sizeof(msie_stub) - 1; | 281 r->headers_out.content_length_n += sizeof(msie_stub) - 1; |
282 msie_padding = 1; | 282 msie_padding = 1; |
283 } | 283 } |
284 | 284 |
285 if (!(r->headers_out.content_type = | 285 r->headers_out.content_type = ngx_list_push(&r->headers_out.headers); |
286 ngx_push_list(&r->headers_out.headers))) | 286 if (r->headers_out.content_type == NULL) { |
287 { | |
288 return NGX_ERROR; | 287 return NGX_ERROR; |
289 } | 288 } |
290 | 289 |
291 r->headers_out.content_type->key.len = sizeof("Content-Type") - 1; | 290 r->headers_out.content_type->key.len = sizeof("Content-Type") - 1; |
292 r->headers_out.content_type->key.data = (u_char *) "Content-Type"; | 291 r->headers_out.content_type->key.data = (u_char *) "Content-Type"; |