diff options
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r-- | src/http/ngx_http_core_module.c | 6 |
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; |