summaryrefslogtreecommitdiff
path: root/src/http/ngx_http_script.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-04-02 10:45:03 +0000
committerJonathan Kolb <jon@b0g.us>2007-04-02 10:45:03 +0000
commit71b65bfec6b3186bec60fd1dbfac47930ef71b99 (patch)
treeaae811deb96eca6e9fffe07de3b7f7fae3139107 /src/http/ngx_http_script.c
parent7a84aad2a179bcf95dbdc79d2e413725482e061d (diff)
downloadnginx-71b65bfec6b3186bec60fd1dbfac47930ef71b99.tar.gz
Changes with nginx 0.5.17 02 Apr 2007v0.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.
Diffstat (limited to 'src/http/ngx_http_script.c')
-rw-r--r--src/http/ngx_http_script.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c
index 54dacb317..63959498b 100644
--- a/src/http/ngx_http_script.c
+++ b/src/http/ngx_http_script.c
@@ -305,9 +305,20 @@ u_char *
ngx_http_script_run(ngx_http_request_t *r, ngx_str_t *value,
void *code_lengths, size_t len, void *code_values)
{
- ngx_http_script_code_pt code;
- ngx_http_script_len_code_pt lcode;
- ngx_http_script_engine_t e;
+ ngx_uint_t i;
+ ngx_http_script_code_pt code;
+ ngx_http_script_len_code_pt lcode;
+ ngx_http_script_engine_t e;
+ ngx_http_core_main_conf_t *cmcf;
+
+ cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module);
+
+ for (i = 0; i < cmcf->variables.nelts; i++) {
+ if (r->variables[i].no_cachable) {
+ r->variables[i].valid = 0;
+ r->variables[i].not_found = 0;
+ }
+ }
ngx_memzero(&e, sizeof(ngx_http_script_engine_t));