comparison src/http/ngx_http_request.c @ 233:4eaafcd57be7

nginx-0.0.1-2004-01-19-21:09:14 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 19 Jan 2004 18:09:14 +0000
parents 03c54b6d7a6f
children 574bea0142be
comparison
equal deleted inserted replaced
232:03c54b6d7a6f 233:4eaafcd57be7
490 } 490 }
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
496 if (rc == NGX_HTTP_PARSE_INVALID_METHOD) {
497 r->http_version = NGX_HTTP_VERSION_10;
498 }
495 499
496 ngx_http_client_error(r, rc, 500 ngx_http_client_error(r, rc,
497 (rc == NGX_HTTP_PARSE_INVALID_METHOD) ? 501 (rc == NGX_HTTP_PARSE_INVALID_METHOD) ?
498 NGX_HTTP_NOT_IMPLEMENTED: 502 NGX_HTTP_NOT_IMPLEMENTED:
499 NGX_HTTP_BAD_REQUEST); 503 NGX_HTTP_BAD_REQUEST);