changeset 2395:b1a24d3cf4dd

clear fastcgi ctx for internal redirection via named location
author Igor Sysoev <igor@sysoev.ru>
date Wed, 10 Dec 2008 16:16:10 +0000
parents dbe746851b31
children 848d944eae81
files src/http/modules/ngx_http_fastcgi_module.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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_reques
         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;