comparison src/http/ngx_http_core_module.c @ 1781:bfb66d7c2b42

optimization
author Igor Sysoev <igor@sysoev.ru>
date Thu, 27 Dec 2007 09:17:20 +0000
parents 74840e606733
children 775edc46ee66
comparison
equal deleted inserted replaced
1780:74840e606733 1781:bfb66d7c2b42
2889 2889
2890 #if (NGX_PCRE) 2890 #if (NGX_PCRE)
2891 sn->regex = NULL; 2891 sn->regex = NULL;
2892 #endif 2892 #endif
2893 sn->core_srv_conf = cscf; 2893 sn->core_srv_conf = cscf;
2894 sn->name.len = value[i].len; 2894 sn->name = value[i];
2895 sn->name.data = value[i].data;
2896 2895
2897 if (value[i].data[0] != '~') { 2896 if (value[i].data[0] != '~') {
2898 continue; 2897 continue;
2899 } 2898 }
2900 2899
2915 if (sn->regex == NULL) { 2914 if (sn->regex == NULL) {
2916 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "%s", err.data); 2915 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "%s", err.data);
2917 return NGX_CONF_ERROR; 2916 return NGX_CONF_ERROR;
2918 } 2917 }
2919 2918
2920 sn->name.len = value[i].len; 2919 sn->name = value[i];
2921 sn->name.data = value[i].data;
2922 } 2920 }
2923 #else 2921 #else
2924 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 2922 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
2925 "the using of the regex \"%V\" " 2923 "the using of the regex \"%V\" "
2926 "requires PCRE library", &value[i]); 2924 "requires PCRE library", &value[i]);