aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request_body.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-11-03 17:33:31 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-11-03 17:33:31 +0000
commita1512b1904fc7e3a0a5b99e49cff480085518445 (patch)
tree9ce4e5578c5957507b16ce0d48de3deaf2562976 /src/http/ngx_http_request_body.c
parent659774979feb9741a441505e26774b35830fd4ca (diff)
downloadnginx-a1512b1904fc7e3a0a5b99e49cff480085518445.tar.gz
nginx-a1512b1904fc7e3a0a5b99e49cff480085518445.zip
nginx-0.0.1-2003-11-03-20:33:31 import
Diffstat (limited to 'src/http/ngx_http_request_body.c')
-rw-r--r--src/http/ngx_http_request_body.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c
index 2fcdd5087..a337c3a95 100644
--- a/src/http/ngx_http_request_body.c
+++ b/src/http/ngx_http_request_body.c
@@ -18,15 +18,13 @@ int ngx_http_read_client_request_body(ngx_http_request_t *r,
size = r->header_in->last - r->header_in->pos;
if (size) {
- ngx_test_null(h, ngx_calloc_hunk(r->pool),
- NGX_HTTP_INTERNAL_SERVER_ERROR);
+ ngx_test_null(h, ngx_calloc_hunk(r->pool), NGX_ERROR);
h->type = NGX_HUNK_IN_MEMORY|NGX_HUNK_TEMP;
h->start = h->pos = r->header_in->pos;
h->end = h->last = r->header_in->last;
- ngx_alloc_link_and_set_hunk(r->request_hunks, h, r->pool,
- NGX_HTTP_INTERNAL_SERVER_ERROR);
+ ngx_alloc_link_and_set_hunk(r->request_hunks, h, r->pool, NGX_ERROR);
if (size >= r->headers_in.content_length_n) {
r->header_in->pos += r->headers_in.content_length_n;
@@ -48,7 +46,7 @@ int ngx_http_read_client_request_body(ngx_http_request_t *r,
}
ngx_test_null(r->request_body_hunk, ngx_create_temp_hunk(r->pool, size),
- NGX_HTTP_INTERNAL_SERVER_ERROR);
+ NGX_ERROR);
r->connection->read->event_handler =
ngx_http_read_client_request_body_handler;
@@ -56,7 +54,7 @@ int ngx_http_read_client_request_body(ngx_http_request_t *r,
ngx_http_read_client_request_body_handler(r->connection->read);
ngx_alloc_link_and_set_hunk(cl, r->request_body_hunk, r->pool,
- NGX_HTTP_INTERNAL_SERVER_ERROR);
+ NGX_ERROR);
if (r->request_hunks) {
r->request_hunks->next = cl;