comparison src/http/modules/ngx_http_addition_filter_module.c @ 1107:db7c468c447d

ngx_strcasecmp()/ngx_strncasecmp()
author Igor Sysoev <igor@sysoev.ru>
date Wed, 14 Feb 2007 18:51:19 +0000
parents 28a8e9b9e8f9
children 2cdefc40cabd
comparison
equal deleted inserted replaced
1106:2c7fed12fab7 1107:db7c468c447d
98 98
99 if (conf->before_body.len == 0 && conf->after_body.len == 0) { 99 if (conf->before_body.len == 0 && conf->after_body.len == 0) {
100 return ngx_http_next_header_filter(r); 100 return ngx_http_next_header_filter(r);
101 } 101 }
102 102
103 if (ngx_strncasecmp(r->headers_out.content_type.data, "text/html", 103 if (ngx_strncasecmp(r->headers_out.content_type.data,
104 sizeof("text/html") - 1) 104 (u_char *) "text/html", sizeof("text/html") - 1)
105 != 0) 105 != 0)
106 { 106 {
107 return ngx_http_next_header_filter(r); 107 return ngx_http_next_header_filter(r);
108 } 108 }
109 109