aboutsummaryrefslogtreecommitdiff
path: root/src/http
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-01-18 21:09:21 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-01-18 21:09:21 +0000
commita2aca9ae929e086b627c5adef295ba5bbb6fe82d (patch)
tree04f484e36d465e4e2b36e24afafb9d2296841394 /src/http
parentf20c05fd26bcbac28c63faf75f738cbc1ddf5861 (diff)
downloadnginx-a2aca9ae929e086b627c5adef295ba5bbb6fe82d.tar.gz
nginx-a2aca9ae929e086b627c5adef295ba5bbb6fe82d.zip
nginx-0.0.1-2004-01-19-00:09:21 import
Diffstat (limited to 'src/http')
-rw-r--r--src/http/ngx_http_request.c10
-rw-r--r--src/http/ngx_http_request.h8
2 files changed, 10 insertions, 8 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index f685bf348..256a41aae 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -391,7 +391,7 @@ static void ngx_http_process_request_line(ngx_event_t *rev)
/*
* if the large client headers are enabled then
- * we need to copy a request line
+ * we need to copy the request line
*/
r->request_line.data = ngx_palloc(r->pool, r->request_line.len + 1);
@@ -493,8 +493,10 @@ static void ngx_http_process_request_line(ngx_event_t *rev)
r->request_line.len = p - r->request_start;
r->request_line.data = r->request_start;
- ngx_http_client_error(r, rc, NGX_HTTP_BAD_REQUEST);
-
+ ngx_http_client_error(r, rc,
+ (rc == NGX_HTTP_PARSE_INVALID_METHOD) ?
+ NGX_HTTP_NOT_IMPLEMENTED:
+ NGX_HTTP_BAD_REQUEST);
return;
}
@@ -1179,7 +1181,7 @@ static void ngx_http_set_keepalive(ngx_http_request_t *r)
/*
* Pipelined request.
*
- * We do not know here whether a pipelined request is complete
+ * We do not know here whether the pipelined request is complete
* so if the large client headers are not enabled
* we need to copy the data to the start of c->buffer.
* This copy should be rare because clients that support
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h
index 5b396b11c..657a098cf 100644
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -50,10 +50,10 @@
#define NGX_HTTP_RANGE_NOT_SATISFIABLE 416
/*
- * HTTP does not define a code for the case when a client closed a connection
- * while we are processing request so we introduce own code to log such
- * situation when client has closed a connection before we even try to
- * send HTTP header to it
+ * HTTP does not define the code for the case when a client closed
+ * the connection while we are processing its request so we introduce
+ * own code to log such situation when a client has closed the connection
+ * before we even try to send the HTTP header to it
*/
#define NGX_HTTP_CLIENT_CLOSED_REQUEST 499