diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-06-03 15:42:58 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-06-03 15:42:58 +0000 |
commit | 1c10462e88491d52a23e22fbc3ca0012591df095 (patch) | |
tree | 5a71cf54dda493188473693e5b66a08fc8cdf161 /src/http/ngx_http_event.c | |
parent | 7578ec9df43bbb31db5291f1b76359d10900a679 (diff) | |
download | nginx-1c10462e88491d52a23e22fbc3ca0012591df095.tar.gz nginx-1c10462e88491d52a23e22fbc3ca0012591df095.zip |
nginx-0.0.1-2003-06-03-19:42:58 import
Diffstat (limited to 'src/http/ngx_http_event.c')
-rw-r--r-- | src/http/ngx_http_event.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_event.c b/src/http/ngx_http_event.c index d65fdde48..b4a9ae97d 100644 --- a/src/http/ngx_http_event.c +++ b/src/http/ngx_http_event.c @@ -279,6 +279,10 @@ static void ngx_http_process_request_line(ngx_event_t *rev) /* STUB: we need to handle such URIs */ if (r->complex_uri || r->unusual_uri) { + r->request_line.len = r->request_end - r->request_start; + r->request_line.data = r->request_start; + r->request_line.data[r->request_line.len] = '\0'; + ngx_http_header_parse_error(r, NGX_HTTP_PARSE_INVALID_REQUEST); ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); return; |