aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-02-14 17:26:26 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-02-14 17:26:26 +0000
commitb17bf52a27f3309353a3c83704dea0c3fd77c406 (patch)
tree204d66de4af60f960e65539c0de67ec92d506a18 /src
parent134d1a67c5337177a996c408b1d2002702f1896d (diff)
downloadnginx-b17bf52a27f3309353a3c83704dea0c3fd77c406.tar.gz
nginx-b17bf52a27f3309353a3c83704dea0c3fd77c406.zip
set content-type for try_files' choice
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_core_module.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index a21da0f3b..3f5cb29dc 100644
--- 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_request_t *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);