diff src/http/ngx_http_request.c @ 716:d8d7c39e3a76

allowing handling 400 errors via proxy_pass
author Igor Sysoev <igor@sysoev.ru>
date Mon, 25 Sep 2006 17:49:49 +0000
parents 7e24168b0853
children 4ab852b691f5
line wrap: on
line diff
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -979,7 +979,7 @@ ngx_http_read_request_header(ngx_http_re
         c->error = rev->error;
         c->log->action = "sending response to client";
 
-        ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);
+        ngx_http_finalize_request(r, NGX_HTTP_CLIENT_CLOSED_REQUEST);
         return NGX_ERROR;
     }