comparison src/http/modules/ngx_http_headers_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 52d1379de54e
children b0e114fb3bdc f552535e259b
comparison
equal deleted inserted replaced
1106:2c7fed12fab7 1107:db7c468c447d
409 ngx_http_header_val_t *h; 409 ngx_http_header_val_t *h;
410 ngx_http_script_compile_t sc; 410 ngx_http_script_compile_t sc;
411 411
412 value = cf->args->elts; 412 value = cf->args->elts;
413 413
414 if (ngx_strcasecmp(value[1].data, "cache-control") == 0) { 414 if (ngx_strcasecmp(value[1].data, (u_char *) "cache-control") == 0) {
415 hcf->cache_control = value[2]; 415 hcf->cache_control = value[2];
416 return NGX_CONF_OK; 416 return NGX_CONF_OK;
417 } 417 }
418 418
419 if (hcf->headers == NULL) { 419 if (hcf->headers == NULL) {