gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated (977814e1 -> 8962cba4)


From: gnunet
Subject: [libmicrohttpd] branch master updated (977814e1 -> 8962cba4)
Date: Tue, 19 Sep 2023 19:35:30 +0200

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

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from 977814e1 Refactored threads support
     new 31dd1b05 get_request_line_inner(): added RFC references
     new 7ae4bccc Fixed MHD_CONNECTION_INFO_DAEMON: return master daemon
     new 8962cba4 Improved doxy for #MHD_CONNECTION_INFO_REQUEST_HEADER_SIZE 
info

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/include/microhttpd.h    |  2 ++
 src/microhttpd/connection.c | 18 ++++++++++++------
 src/microhttpd/internal.h   |  2 ++
 3 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 933f146a..c850d849 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -2307,6 +2307,8 @@ union MHD_ConnectionInfo
 
   /**
    * Size of the client's HTTP header.
+   * It includes the request line, all request headers, the header section
+   * terminating empty line, with all CRLF (or LF) characters.
    */
   size_t header_size;
 
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index b1872517..4d66f497 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 */
@@ -6957,7 +6962,8 @@ MHD_get_connection_info (struct MHD_Connection 
*connection,
     }
     return NULL;
   case MHD_CONNECTION_INFO_DAEMON:
-    connection->connection_info_dummy.daemon = connection->daemon;
+    connection->connection_info_dummy.daemon =
+      MHD_get_master (connection->daemon);
     return &connection->connection_info_dummy;
   case MHD_CONNECTION_INFO_CONNECTION_FD:
     connection->connection_info_dummy.connect_fd = connection->socket_fd;
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 27e9a50f..96178169 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -1097,6 +1097,8 @@ struct MHD_Request
   /**
    * Number of bytes we had in the HTTP header, set once we
    * pass #MHD_CONNECTION_HEADERS_RECEIVED.
+   * This includes the request line, all request headers, the header section
+   * terminating empty line, with all CRLF (or LF) characters.
    */
   size_t header_size;
 

-- 
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]