Mercurial > hg > nginx
comparison src/http/modules/ngx_http_autoindex_module.c @ 842:d8e2613a2b55
charset could not be set for ngx_http_autoindex_module responses
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 13 Nov 2006 20:53:37 +0000 |
parents | c3ebeee31026 |
children | 090e391f53db |
comparison
equal
deleted
inserted
replaced
841:790ed4eb762e | 842:d8e2613a2b55 |
---|---|
227 { | 227 { |
228 return ngx_http_autoindex_error(r, &dir, &path); | 228 return ngx_http_autoindex_error(r, &dir, &path); |
229 } | 229 } |
230 | 230 |
231 r->headers_out.status = NGX_HTTP_OK; | 231 r->headers_out.status = NGX_HTTP_OK; |
232 r->headers_out.content_type_len = sizeof("text/html") - 1; | |
232 r->headers_out.content_type.len = sizeof("text/html") - 1; | 233 r->headers_out.content_type.len = sizeof("text/html") - 1; |
233 r->headers_out.content_type.data = (u_char *) "text/html"; | 234 r->headers_out.content_type.data = (u_char *) "text/html"; |
234 | 235 |
235 rc = ngx_http_send_header(r); | 236 rc = ngx_http_send_header(r); |
236 | 237 |