comparison 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
comparison
equal deleted inserted replaced
715:cbd18f013385 716:d8d7c39e3a76
977 977
978 if (n == 0 || n == NGX_ERROR) { 978 if (n == 0 || n == NGX_ERROR) {
979 c->error = rev->error; 979 c->error = rev->error;
980 c->log->action = "sending response to client"; 980 c->log->action = "sending response to client";
981 981
982 ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); 982 ngx_http_finalize_request(r, NGX_HTTP_CLIENT_CLOSED_REQUEST);
983 return NGX_ERROR; 983 return NGX_ERROR;
984 } 984 }
985 985
986 r->header_in->last += n; 986 r->header_in->last += n;
987 987