From faca119aa5b2375d247c4948ba6791e7d8d2b8bc Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 5 Dec 2003 07:11:46 +0000 Subject: nginx-0.0.1-2003-12-05-10:11:46 import --- src/http/ngx_http_core_module.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/http/ngx_http_core_module.c') 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; -- cgit