comparison src/http/ngx_http_script.c @ 294:27d9d1f26b38 NGINX_0_5_17

nginx 0.5.17 *) Change: now nginx always returns the 405 status for the TRACE method. *) Feature: now nginx supports the "include" directive inside the "types" block. *) Bugfix: the $document_root variable usage in the "root" and "alias" directives is disabled: this caused recursive stack overflow. *) Bugfix: in the HTTPS protocol in the "proxy_pass" directive. *) Bugfix: in some cases non-cachable variables (such as $uri variable) returned old cached value.
author Igor Sysoev <http://sysoev.ru>
date Mon, 02 Apr 2007 00:00:00 +0400
parents 2e9c57a5e50a
children 390b8f8309d6
comparison
equal deleted inserted replaced
293:30378812e3af 294:27d9d1f26b38
303 303
304 u_char * 304 u_char *
305 ngx_http_script_run(ngx_http_request_t *r, ngx_str_t *value, 305 ngx_http_script_run(ngx_http_request_t *r, ngx_str_t *value,
306 void *code_lengths, size_t len, void *code_values) 306 void *code_lengths, size_t len, void *code_values)
307 { 307 {
308 ngx_http_script_code_pt code; 308 ngx_uint_t i;
309 ngx_http_script_len_code_pt lcode; 309 ngx_http_script_code_pt code;
310 ngx_http_script_engine_t e; 310 ngx_http_script_len_code_pt lcode;
311 ngx_http_script_engine_t e;
312 ngx_http_core_main_conf_t *cmcf;
313
314 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module);
315
316 for (i = 0; i < cmcf->variables.nelts; i++) {
317 if (r->variables[i].no_cachable) {
318 r->variables[i].valid = 0;
319 r->variables[i].not_found = 0;
320 }
321 }
311 322
312 ngx_memzero(&e, sizeof(ngx_http_script_engine_t)); 323 ngx_memzero(&e, sizeof(ngx_http_script_engine_t));
313 324
314 e.ip = code_lengths; 325 e.ip = code_lengths;
315 e.request = r; 326 e.request = r;