summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_parse.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2013-06-28Fixed ngx_http_parse_chunked() minimal length calculation.Maxim Dounin1-2/+3
Minimal data length we expect for further calls was calculated incorrectly if parsing stopped right after parsing chunk size. This might in theory affect clients and/or backends using LF instead of CRLF. Patch by Dmitry Popov.
2013-06-05Fixed debug logging in ngx_http_parse_complex_uri().Maxim Dounin1-2/+2
The *u previously logged isn't yet initialized at this point, and Valgrind complains.
2013-05-06Fixed chunk size parsing.Maxim Dounin1-0/+4
2013-03-20Preliminary experimental support for SPDY draft 2.Valentin Bartenev1-0/+148
2012-11-21Request body: adjust b->pos when chunked parsing done.Maxim Dounin1-0/+3
This is a nop for the current code, though will allow to correctly parse pipelined requests.
2012-11-21Request body: chunked parsing moved to ngx_http_parse.c from proxy.Maxim Dounin1-0/+253
No functional changes.
2012-06-05Win32: normalization of trailing dot inside uri.Maxim Dounin1-0/+20
Windows treats "/directory./" identical to "/directory/". Do the same when working on Windows. Note that the behaviour is different from one with last path component (where multiple spaces and dots are ignored by Windows).
2012-04-03Fixed spelling in multiline C comments.Ruslan Ermilov1-1/+1
2012-03-19For the sake of case/switch code readability, 'fall through'Maxim Konovalov1-0/+1
comments added.
2012-03-15Headers with null character are now rejected.Maxim Dounin1-0/+14
Headers with NUL character aren't allowed by HTTP standard and may cause various security problems. They are now unconditionally rejected.
2012-01-18Copyright updated.Maxim Konovalov1-0/+1
2011-11-28Added support for IP-literal in the Host header and request line (ticket #1).Valentin Bartenev1-2/+62
Additional parsing logic added to correctly handle RFC 3986 compliant IPv6 and IPvFuture characters enclosed in square brackets. The host validation was completely rewritten. The behavior for non IP literals was changed in a more proper and safer way: - Host part is now delimited either by the first colon or by the end of string if there's no colon. Previously the last colon was used as delimiter which allowed substitution of a port number in the $host variable. (e.g. Host: 127.0.0.1:9000:80) - Fixed stripping of the ending dot in the Host header when the host was also followed by a port number. (e.g. Host: nginx.com.:80) - Fixed upper case characters detection. Previously it was broken which led to wasting memory and CPU.
2011-09-15Protocol version parsing in ngx_http_parse_status_line().Maxim Dounin1-0/+5
Once we know protocol version, set u->headers_in.connection_close to indicate implicitly assumed connection close with HTTP before 1.1.
2010-06-23style fixIgor Sysoev1-1/+1
2010-06-15ngx_http_parse_status_line()Igor Sysoev1-0/+205
2010-06-15allow spaces in URIIgor Sysoev1-5/+55
2010-06-10PATCH methodIgor Sysoev1-0/+4
2010-06-04fix "/dir/%3F../" and "/dir/%23../" casesIgor Sysoev1-6/+3
2010-05-24remove r->zero_in_uriIgor Sysoev1-34/+15
2009-09-25check unsafe DestinationIgor Sysoev1-2/+4
2009-09-14handle "/../" case more reliablyIgor Sysoev1-5/+9
2009-09-02discrease slightly ngx_http_parse_header_line() size:Igor Sysoev1-2/+1
this line is not required for LF, however, this case is very seldom
2009-09-01fix segfault when a header starts with "\rX"Igor Sysoev1-0/+1
and logging is set to info or debug level
2009-07-20do not test "..." case since it's Win9x family feature onlyIgor Sysoev1-72/+0
2009-07-13allow underscore in request methodIgor Sysoev1-2/+2
2009-04-23ngx_path_separator()Igor Sysoev1-18/+5
2009-04-04refactor ngx_http_arg() using ngx_strcasestrn(),Igor Sysoev1-8/+8
back out zero termination introduced in r2138
2009-03-30fix r2579Igor Sysoev1-0/+2
2009-03-22style fix: remove tabsIgor Sysoev1-14/+14
2009-03-19ngx_http_split_args()Igor Sysoev1-0/+34
2008-12-22ngx_http_arg()Igor Sysoev1-0/+42
2008-09-24underscores_in_headersIgor Sysoev1-2/+16
2008-09-08allow underscores in client request header linesIgor Sysoev1-1/+1
2008-03-16test the more likely case firstIgor Sysoev1-2/+2
2008-03-16use the more correct maskIgor Sysoev1-1/+1
2007-12-14fix merge_slashesIgor Sysoev1-1/+1
2007-10-26compatibility with mget: space after HTTP/1.1Igor Sysoev1-0/+20
2007-10-18merge_slashesIgor Sysoev1-1/+5
2007-10-18allow full URL without URI part: "GET http://host HTTP/1.0"Igor Sysoev1-3/+21
2007-05-07optimize HTTP method parsing for i386 and amd64Igor Sysoev1-30/+80
2007-03-30disable TRACE methodIgor Sysoev1-0/+6
2006-12-14fix segfault when $host is used and request is "GET http://host HTTP/1.0"Igor Sysoev1-0/+1
2006-11-23use host part in URLIgor Sysoev1-1/+1
2006-11-14add more WebDAV methodsIgor Sysoev1-10/+76
2006-10-31style fixIgor Sysoev1-2/+1
2006-10-31style fixIgor Sysoev1-1/+1
2006-10-30treat '\' as special character in win32 onlyIgor Sysoev1-0/+4
2006-10-28style fixIgor Sysoev1-12/+13
2006-10-28undo the previous wrong commitIgor Sysoev1-13/+12
2006-10-28bad commitIgor Sysoev1-12/+13