]> git.kaiwu.me - nginx.git/commitdiff
return 400 response
authorIgor Sysoev <igor@sysoev.ru>
Mon, 27 Aug 2007 20:52:40 +0000 (20:52 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 27 Aug 2007 20:52:40 +0000 (20:52 +0000)
src/http/ngx_http_request.c

index a730da2aee446db491c3210d6a36d51ae043b50f..87b6017a614566d860977d71c1683b84defa8a34 100644 (file)
@@ -836,7 +836,7 @@ ngx_http_process_request_headers(ngx_event_t *rev)
                     ngx_log_error(NGX_LOG_INFO, c->log, 0,
                                   "client sent too long header line: \"%V\"",
                                   &header);
-                    ngx_http_close_request(r, NGX_HTTP_BAD_REQUEST);
+                    ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);
                     return;
                 }
             }
@@ -948,7 +948,7 @@ ngx_http_process_request_headers(ngx_event_t *rev)
         ngx_log_error(NGX_LOG_INFO, c->log, 0,
                       "client sent invalid header line: \"%V\\r...\"",
                       &header);
-        ngx_http_close_request(r, NGX_HTTP_BAD_REQUEST);
+        ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);
         return;
     }
 }