aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-12-10 16:16:10 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-12-10 16:16:10 +0000
commit1e2d6aa0e88891bf92d860f108a93078e3203e53 (patch)
treed4712382c1d4b3370bf45a0f86f4373a54104c92
parent524f54f56dc506ae7fc2ef29794d399e13f69fb2 (diff)
downloadnginx-1e2d6aa0e88891bf92d860f108a93078e3203e53.tar.gz
nginx-1e2d6aa0e88891bf92d860f108a93078e3203e53.zip
clear fastcgi ctx for internal redirection via named location
-rw-r--r--src/http/modules/ngx_http_fastcgi_module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c
index 88ea672ac..301449fee 100644
--- a/src/http/modules/ngx_http_fastcgi_module.c
+++ b/src/http/modules/ngx_http_fastcgi_module.c
@@ -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;