]> git.kaiwu.me - nginx.git/commitdiff
clear fastcgi ctx for internal redirection via named location
authorIgor Sysoev <igor@sysoev.ru>
Wed, 10 Dec 2008 16:16:10 +0000 (16:16 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 10 Dec 2008 16:16:10 +0000 (16:16 +0000)
src/http/modules/ngx_http_fastcgi_module.c

index 88ea672ac34dc203cef4f5b7e1cc878b7c764fd4..301449fee9529389aacb0da621f765561429f323 100644 (file)
@@ -419,6 +419,8 @@ ngx_http_fastcgi_handler(ngx_http_request_t *r)
         return NGX_HTTP_INTERNAL_SERVER_ERROR;
     }
 
+    ngx_http_set_ctx(r, NULL, ngx_http_fastcgi_module);
+
     u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t));
     if (u == NULL) {
         return NGX_HTTP_INTERNAL_SERVER_ERROR;