Mercurial > hg > nginx
comparison src/http/modules/ngx_http_xslt_filter_module.c @ 3516:dd1570b6f237
ngx_str_set() and ngx_str_null()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 14 May 2010 09:56:37 +0000 |
parents | 05e964be70a2 |
children | ac33852faaac |
comparison
equal
deleted
inserted
replaced
3515:76d252724db5 | 3516:dd1570b6f237 |
---|---|
835 r->headers_out.content_type.data = type; | 835 r->headers_out.content_type.data = type; |
836 | 836 |
837 } else if (doc_type == XML_HTML_DOCUMENT_NODE) { | 837 } else if (doc_type == XML_HTML_DOCUMENT_NODE) { |
838 | 838 |
839 r->headers_out.content_type_len = sizeof("text/html") - 1; | 839 r->headers_out.content_type_len = sizeof("text/html") - 1; |
840 r->headers_out.content_type.len = sizeof("text/html") - 1; | 840 ngx_str_set(&r->headers_out.content_type, "text/html"); |
841 r->headers_out.content_type.data = (u_char *) "text/html"; | |
842 } | 841 } |
843 | 842 |
844 r->headers_out.content_type_lowcase = NULL; | 843 r->headers_out.content_type_lowcase = NULL; |
845 | 844 |
846 return b; | 845 return b; |