Mercurial > hg > nginx-quic
comparison src/http/ngx_http_request.c @ 232:03c54b6d7a6f
nginx-0.0.1-2004-01-19-00:09:21 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 18 Jan 2004 21:09:21 +0000 |
parents | 1119faf4635a |
children | 4eaafcd57be7 |
comparison
equal
deleted
inserted
replaced
231:92db0aa1e83f | 232:03c54b6d7a6f |
---|---|
389 | 389 |
390 if (cscf->large_client_header) { | 390 if (cscf->large_client_header) { |
391 | 391 |
392 /* | 392 /* |
393 * if the large client headers are enabled then | 393 * if the large client headers are enabled then |
394 * we need to copy a request line | 394 * we need to copy the request line |
395 */ | 395 */ |
396 | 396 |
397 r->request_line.data = ngx_palloc(r->pool, r->request_line.len + 1); | 397 r->request_line.data = ngx_palloc(r->pool, r->request_line.len + 1); |
398 if (r->request_line.data == NULL) { | 398 if (r->request_line.data == NULL) { |
399 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); | 399 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); |
491 } | 491 } |
492 | 492 |
493 r->request_line.len = p - r->request_start; | 493 r->request_line.len = p - r->request_start; |
494 r->request_line.data = r->request_start; | 494 r->request_line.data = r->request_start; |
495 | 495 |
496 ngx_http_client_error(r, rc, NGX_HTTP_BAD_REQUEST); | 496 ngx_http_client_error(r, rc, |
497 | 497 (rc == NGX_HTTP_PARSE_INVALID_METHOD) ? |
498 NGX_HTTP_NOT_IMPLEMENTED: | |
499 NGX_HTTP_BAD_REQUEST); | |
498 return; | 500 return; |
499 } | 501 } |
500 | 502 |
501 /* NGX_AGAIN: a request line parsing is still not complete */ | 503 /* NGX_AGAIN: a request line parsing is still not complete */ |
502 | 504 |
1177 if (h->pos < h->last) { | 1179 if (h->pos < h->last) { |
1178 | 1180 |
1179 /* | 1181 /* |
1180 * Pipelined request. | 1182 * Pipelined request. |
1181 * | 1183 * |
1182 * We do not know here whether a pipelined request is complete | 1184 * We do not know here whether the pipelined request is complete |
1183 * so if the large client headers are not enabled | 1185 * so if the large client headers are not enabled |
1184 * we need to copy the data to the start of c->buffer. | 1186 * we need to copy the data to the start of c->buffer. |
1185 * This copy should be rare because clients that support | 1187 * This copy should be rare because clients that support |
1186 * pipelined requests (Mozilla 1.x, Opera 6.x+) are still rare. | 1188 * pipelined requests (Mozilla 1.x, Opera 6.x+) are still rare. |
1187 */ | 1189 */ |