comparison src/http/ngx_http_event.c @ 100:7ebc8b7fb816

nginx-0.0.1-2003-06-03-19:42:58 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 03 Jun 2003 15:42:58 +0000
parents a059e1aa65d4
children 2e069b6e6920
comparison
equal deleted inserted replaced
99:a059e1aa65d4 100:7ebc8b7fb816
277 277
278 /* the request line has been parsed successfully */ 278 /* the request line has been parsed successfully */
279 279
280 /* STUB: we need to handle such URIs */ 280 /* STUB: we need to handle such URIs */
281 if (r->complex_uri || r->unusual_uri) { 281 if (r->complex_uri || r->unusual_uri) {
282 r->request_line.len = r->request_end - r->request_start;
283 r->request_line.data = r->request_start;
284 r->request_line.data[r->request_line.len] = '\0';
285
282 ngx_http_header_parse_error(r, NGX_HTTP_PARSE_INVALID_REQUEST); 286 ngx_http_header_parse_error(r, NGX_HTTP_PARSE_INVALID_REQUEST);
283 ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); 287 ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);
284 return; 288 return;
285 } 289 }
286 290