gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 01/03: get_request_line_inner(): added RFC references


From: gnunet
Subject: [libmicrohttpd] 01/03: get_request_line_inner(): added RFC references
Date: Tue, 19 Sep 2023 19:35:31 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

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

    get_request_line_inner(): added RFC references
---
 src/microhttpd/connection.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index b1872517..9e1352de 100644
--- 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 */

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]