Mercurial > hg > nginx-quic
comparison src/http/ngx_http_request.c @ 159:981e4af2a425
nginx-0.0.1-2003-10-24-20:10:38 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 24 Oct 2003 16:10:38 +0000 |
parents | 46eb23d9471d |
children | e7e094d34162 |
comparison
equal
deleted
inserted
replaced
158:d377ee423603 | 159:981e4af2a425 |
---|---|
320 ngx_http_header_parse_error(r, NGX_HTTP_PARSE_TOO_LONG_URI, | 320 ngx_http_header_parse_error(r, NGX_HTTP_PARSE_TOO_LONG_URI, |
321 NGX_HTTP_REQUEST_URI_TOO_LARGE); | 321 NGX_HTTP_REQUEST_URI_TOO_LARGE); |
322 return; | 322 return; |
323 } | 323 } |
324 | 324 |
325 | |
325 /* copy URI */ | 326 /* copy URI */ |
326 | 327 |
327 if (r->args_start) { | 328 if (r->args_start) { |
328 r->uri.len = r->args_start - 1 - r->uri_start; | 329 r->uri.len = r->args_start - 1 - r->uri_start; |
329 } else { | 330 } else { |
337 return; | 338 return; |
338 } | 339 } |
339 | 340 |
340 ngx_cpystrn(r->uri.data, r->uri_start, r->uri.len + 1); | 341 ngx_cpystrn(r->uri.data, r->uri_start, r->uri.len + 1); |
341 | 342 |
342 #if 1 /* THINK: needed to log url on errors in proxy only ? */ | |
343 | 343 |
344 /* copy unparsed URI */ | 344 /* copy unparsed URI */ |
345 | 345 |
346 r->unparsed_uri.len = r->uri_end - r->uri_start; | 346 r->unparsed_uri.len = r->uri_end - r->uri_start; |
347 r->unparsed_uri.data = ngx_palloc(r->pool, r->unparsed_uri.len + 1); | 347 r->unparsed_uri.data = ngx_palloc(r->pool, r->unparsed_uri.len + 1); |
352 } | 352 } |
353 | 353 |
354 ngx_cpystrn(r->unparsed_uri.data, r->uri_start, | 354 ngx_cpystrn(r->unparsed_uri.data, r->uri_start, |
355 r->unparsed_uri.len + 1); | 355 r->unparsed_uri.len + 1); |
356 | 356 |
357 #endif | |
358 | 357 |
359 r->request_line.len = r->request_end - r->request_start; | 358 r->request_line.len = r->request_end - r->request_start; |
360 | 359 |
361 /* if the large client headers are enabled then | 360 /* if the large client headers are enabled then |
362 we need to copy a request line */ | 361 we need to copy a request line */ |