gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 06/11: process_request_body(): removed one more unneeded


From: gnunet
Subject: [libmicrohttpd] 06/11: process_request_body(): removed one more unneeded check
Date: Wed, 24 Nov 2021 19:08:19 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit eebf9c28f01fdcd970a9f9496487930fe9eb4cea
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Nov 22 21:20:01 2021 +0300

    process_request_body(): removed one more unneeded check
---
 src/microhttpd/connection.c | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 25279931..0426620b 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -3235,19 +3235,11 @@ process_request_body (struct MHD_Connection *connection)
     {
       /* no chunked encoding, give all to the client */
       mhd_assert (MHD_SIZE_UNKNOWN != connection->remaining_upload_size);
-      if ( (0 != connection->remaining_upload_size) &&
-           (connection->remaining_upload_size < available) )
-      {
+      mhd_assert (0 != connection->remaining_upload_size);
+      if (connection->remaining_upload_size < available)
         to_be_processed = (size_t) connection->remaining_upload_size;
-      }
       else
-      {
-        /**
-         * 1. no chunked encoding, give all to the client
-         * 2. client may send large chunked data, but only a smaller part is 
available at one time.
-         */
         to_be_processed = available;
-      }
     }
     left_unprocessed = to_be_processed;
     connection->client_aware = true;

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