Klaus Demo nginx / f7dd767
if a location is specified by regex, then always compile an "alias", even into one static string script: this elimates testing this too specific case inside ngx_http_map_uri_to_path() Igor Sysoev 11 years ago
1 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
37873787 n = ngx_http_script_variables_count(&clcf->root);
37883788
37893789 ngx_memzero(&sc, sizeof(ngx_http_script_compile_t));
3790 sc.variables = n;
3791
3792 #if (NGX_PCRE)
3793 if (alias && clcf->regex) {
3794 n = 1;
3795 }
3796 #endif
37903797
37913798 if (n) {
37923799 sc.cf = cf;
37933800 sc.source = &clcf->root;
37943801 sc.lengths = &clcf->root_lengths;
37953802 sc.values = &clcf->root_values;
3796 sc.variables = n;
37973803 sc.complete_lengths = 1;
37983804 sc.complete_values = 1;
37993805