mirror of
https://github.com/nginx/nginx.git
synced 2026-08-28 04:39:05 +00:00
set content-type for try_files' choice
This commit is contained in:
parent
134d1a67c5
commit
b17bf52a27
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue