aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-12-05 07:11:46 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-12-05 07:11:46 +0000
commitfaca119aa5b2375d247c4948ba6791e7d8d2b8bc (patch)
treef20b0776f49cb24e7ea83bae57cb6c135b73c445 /src/http/ngx_http_core_module.c
parentf5003d8a66790932cae5168a913ae234cd4ce709 (diff)
downloadnginx-faca119aa5b2375d247c4948ba6791e7d8d2b8bc.tar.gz
nginx-faca119aa5b2375d247c4948ba6791e7d8d2b8bc.zip
nginx-0.0.1-2003-12-05-10:11:46 import
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 547e028e5..3046ca882 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -514,7 +514,13 @@ ngx_log_debug(r->connection->log, "trans: %s: %d" _
}
if (clcf->handler) {
+ /*
+ * if the location already has content handler then skip
+ * the translation phase
+ */
+
r->content_handler = clcf->handler;
+ r->phase++;
}
return NGX_OK;