comparison src/http/ngx_http_request.c @ 314:d71c87d11b16

nginx-0.0.3-2004-04-14-09:57:36 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 14 Apr 2004 05:57:36 +0000
parents 98f1a8028067
children ba876b26b76d
comparison
equal deleted inserted replaced
313:98f1a8028067 314:d71c87d11b16
335 335
336 if (rc == NGX_OK) { 336 if (rc == NGX_OK) {
337 337
338 /* the request line has been parsed successfully */ 338 /* the request line has been parsed successfully */
339 339
340 #if 0
340 /* TODO: we need to handle proxy URIs */ 341 /* TODO: we need to handle proxy URIs */
341 if (r->unusual_uri) { 342 if (r->unusual_uri) {
342 r->request_line.len = r->request_end - r->request_start; 343 r->request_line.len = r->request_end - r->request_start;
343 r->request_line.data = r->request_start; 344 r->request_line.data = r->request_start;
344 #if 0 345 #if 0
347 348
348 ngx_http_client_error(r, NGX_HTTP_PARSE_INVALID_REQUEST, 349 ngx_http_client_error(r, NGX_HTTP_PARSE_INVALID_REQUEST,
349 NGX_HTTP_BAD_REQUEST); 350 NGX_HTTP_BAD_REQUEST);
350 return; 351 return;
351 } 352 }
353 #endif
352 354
353 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); 355 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module);
354 356
355 if (r->http_version >= NGX_HTTP_VERSION_10 357 if (r->http_version >= NGX_HTTP_VERSION_10
356 && cscf->large_client_header == 0 358 && cscf->large_client_header == 0
436 } else { 438 } else {
437 r->request_line.data = r->request_start; 439 r->request_line.data = r->request_start;
438 r->request_line.data[r->request_line.len] = '\0'; 440 r->request_line.data[r->request_line.len] = '\0';
439 } 441 }
440 442
443 if (r->method == 0) {
444 r->method_name.len = r->method_end - r->request_start + 1;
445 r->method_name.data = r->request_line.data;
446 }
441 447
442 if (r->uri_ext) { 448 if (r->uri_ext) {
443 449
444 /* copy URI extention */ 450 /* copy URI extention */
445 451