diff options
author | Ruslan Ermilov <ru@nginx.com> | 2019-12-16 15:19:01 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2019-12-16 15:19:01 +0300 |
commit | 48086f79ad7d9ac08943312f59215533330617d0 (patch) | |
tree | 79d0fb839313194198b4f1a93a531df46242827d | |
parent | be45a3aa590a5f7e64c6d55e8e0f78565adf4823 (diff) | |
download | nginx-48086f79ad7d9ac08943312f59215533330617d0.tar.gz |
Fixed request finalization in ngx_http_index_handler().
Returning 500 instead of NGX_ERROR is preferable here because
header has not yet been sent to the client.
-rw-r--r-- | src/http/modules/ngx_http_index_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_index_module.c b/src/http/modules/ngx_http_index_module.c index c144b31c3..2ee1dd5a4 100644 --- a/src/http/modules/ngx_http_index_module.c +++ b/src/http/modules/ngx_http_index_module.c @@ -163,7 +163,7 @@ ngx_http_index_handler(ngx_http_request_t *r) name = ngx_http_map_uri_to_path(r, &path, &root, reserve); if (name == NULL) { - return NGX_ERROR; + return NGX_HTTP_INTERNAL_SERVER_ERROR; } allocated = path.data + path.len - name; |