mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
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.
This commit is contained in:
parent
be45a3aa59
commit
48086f79ad
@ -163,7 +163,7 @@ ngx_http_index_handler(ngx_http_request_t *r)
|
|||||||
|
|
||||||
name = ngx_http_map_uri_to_path(r, &path, &root, reserve);
|
name = ngx_http_map_uri_to_path(r, &path, &root, reserve);
|
||||||
if (name == NULL) {
|
if (name == NULL) {
|
||||||
return NGX_ERROR;
|
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
allocated = path.data + path.len - name;
|
allocated = path.data + path.len - name;
|
||||||
|
Loading…
Reference in New Issue
Block a user