comparison src/http/modules/ngx_http_index_module.c @ 7603:e55e28e6998f

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.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 16 Dec 2019 15:19:01 +0300
parents 3fb9b5eb75c0
children
comparison
equal deleted inserted replaced
7602:b399246ea45d 7603:e55e28e6998f
161 161
162 if (reserve > allocated) { 162 if (reserve > allocated) {
163 163
164 name = ngx_http_map_uri_to_path(r, &path, &root, reserve); 164 name = ngx_http_map_uri_to_path(r, &path, &root, reserve);
165 if (name == NULL) { 165 if (name == NULL) {
166 return NGX_ERROR; 166 return NGX_HTTP_INTERNAL_SERVER_ERROR;
167 } 167 }
168 168
169 allocated = path.data + path.len - name; 169 allocated = path.data + path.len - name;
170 } 170 }
171 171