Mercurial > hg > nginx
comparison src/http/ngx_http_special_response.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 | ec3c049681fd |
comparison
equal
deleted
inserted
replaced
291:117ccc7c4055 | 292:a472bfb778b3 |
---|---|
246 { | 246 { |
247 return NGX_ERROR; | 247 return NGX_ERROR; |
248 } | 248 } |
249 | 249 |
250 r->headers_out.content_type->key.len = sizeof("Content-Type") - 1; | 250 r->headers_out.content_type->key.len = sizeof("Content-Type") - 1; |
251 r->headers_out.content_type->key.data = "Content-Type"; | 251 r->headers_out.content_type->key.data = (u_char *) "Content-Type"; |
252 r->headers_out.content_type->value.len = sizeof("text/html") - 1; | 252 r->headers_out.content_type->value.len = sizeof("text/html") - 1; |
253 r->headers_out.content_type->value.data = "text/html"; | 253 r->headers_out.content_type->value.data = (u_char *) "text/html"; |
254 | 254 |
255 } else { | 255 } else { |
256 r->headers_out.content_length_n = -1; | 256 r->headers_out.content_length_n = -1; |
257 } | 257 } |
258 | 258 |