Mercurial > hg > nginx-quic
changeset 2503:7b0711452b34
set content-type for try_files' choice
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 14 Feb 2009 17:26:26 +0000 |
parents | 23706c19fab8 |
children | 9e9a985d956a |
files | src/http/ngx_http_core_module.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1197,6 +1197,11 @@ ngx_http_core_try_files_phase(ngx_http_r ngx_memcpy(p, name, path.len); } + if (ngx_http_set_exten(r) != NGX_OK) { + ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); + return NGX_OK; + } + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "try file uri: \"%V\"", &r->uri);