comparison src/http/ngx_http_request.c @ 991:9075a1c5dc78

use right status code
author Igor Sysoev <igor@sysoev.ru>
date Mon, 08 Jan 2007 18:22:06 +0000
parents bc232bbdddf9
children 3f2e60adf4ef
comparison
equal deleted inserted replaced
990:bc232bbdddf9 991:9075a1c5dc78
974 ngx_log_error(NGX_LOG_INFO, c->log, 0, 974 ngx_log_error(NGX_LOG_INFO, c->log, 0,
975 "client closed prematurely connection"); 975 "client closed prematurely connection");
976 } 976 }
977 977
978 if (n == 0 || n == NGX_ERROR) { 978 if (n == 0 || n == NGX_ERROR) {
979 c->error = rev->error; 979 c->error = 1;
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_CLIENT_CLOSED_REQUEST); 982 ngx_http_finalize_request(r, NGX_HTTP_BAD_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