Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 2670:20a655d8a1f8
refactor ngx_http_arg() using ngx_strcasestrn(),
back out zero termination introduced in r2138
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 04 Apr 2009 17:51:38 +0000 |
parents | 1374ffff9635 |
children | 6caf687a831f |
comparison
equal
deleted
inserted
replaced
2669:5e4d8bd4486c | 2670:20a655d8a1f8 |
---|---|
695 | 695 |
696 /* the request line has been parsed successfully */ | 696 /* the request line has been parsed successfully */ |
697 | 697 |
698 r->request_line.len = r->request_end - r->request_start; | 698 r->request_line.len = r->request_end - r->request_start; |
699 r->request_line.data = r->request_start; | 699 r->request_line.data = r->request_start; |
700 *r->request_end = '\0'; | |
701 | 700 |
702 | 701 |
703 if (r->args_start) { | 702 if (r->args_start) { |
704 r->uri.len = r->args_start - 1 - r->uri_start; | 703 r->uri.len = r->args_start - 1 - r->uri_start; |
705 } else { | 704 } else { |