Klaus Demo nginx / cea316d
not do ngx_http_upstream_finalize_request() twice Igor Sysoev 15 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
11361136 umcf = ngx_http_get_module_main_conf(r, ngx_http_upstream_module);
11371137
11381138 if (r->upstream->headers_in.x_accel_redirect) {
1139
11391140 ngx_http_upstream_finalize_request(r, u, NGX_DECLINED);
11401141
11411142 part = &r->upstream->headers_in.headers.part;
11581159
11591160 if (hh && hh->redirect) {
11601161 if (hh->copy_handler(r, &h[i], hh->conf) != NGX_OK) {
1161 ngx_http_upstream_finalize_request(r, u,
1162 NGX_HTTP_INTERNAL_SERVER_ERROR);
1162 ngx_http_finalize_request(r,
1163 NGX_HTTP_INTERNAL_SERVER_ERROR);
11631164 return;
11641165 }
11651166 }
11711172 flags = 0;
11721173
11731174 if (ngx_http_parse_unsafe_uri(r, uri, &args, &flags) != NGX_OK) {
1174 ngx_http_upstream_finalize_request(r, u, NGX_HTTP_NOT_FOUND);
1175 ngx_http_finalize_request(r, NGX_HTTP_NOT_FOUND);
11751176 return;
11761177 }
11771178