libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 31dd1b054fece1e2d0939d62afe29ecd5362683c
parent 977814e18a50b6bcbe18c14302494cf9e570a408
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 19 Sep 2023 10:40:28 +0300

get_request_line_inner(): added RFC references

Diffstat:
Msrc/microhttpd/connection.c | 15++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -4195,16 +4195,21 @@ get_request_line_inner (struct MHD_Connection *c) /* Treat bare LF as the end of the line. RFC 9112, section 2.2 */ const bool bare_lf_as_crlf = (0 >= discp_lvl); - /* Treat tab as whitespace delimiter */ + /* Treat tab as whitespace delimiter. + RFC 9112, section 3 */ const bool tab_as_wsp = (0 >= discp_lvl); - /* Treat VT (vertical tab) and FF (form feed) as whitespace delimiters */ + /* Treat VT (vertical tab) and FF (form feed) as whitespace delimiters. + RFC 9112, section 3 */ const bool other_wsp_as_wsp = (-1 >= discp_lvl); - /* Treat continuous whitespace block as a single space */ + /* Treat continuous whitespace block as a single space. + RFC 9112, section 3 */ const bool wsp_blocks = (-1 >= discp_lvl); - /* Parse whitespace in URI, special parsing of the request line */ + /* Parse whitespace in URI, special parsing of the request line. + RFC 9112, section 3.2 */ const bool wsp_in_uri = (0 >= discp_lvl); /* Keep whitespace in URI, give app URI with whitespace instead of - automatic redirect to fixed URI */ + automatic redirect to fixed URI. + Violates RFC 9112, section 3.2 */ const bool wsp_in_uri_keep = (-2 >= discp_lvl); /* Keep bare CR character as is. Violates RFC 9112, section 2.2 */