]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3490] Addressed cosmetic comments
authorFrancis Dupont <fdupont@isc.org>
Thu, 8 Aug 2024 14:31:13 +0000 (16:31 +0200)
committerRazvan Becheriu <razvan@isc.org>
Thu, 8 Aug 2024 19:39:03 +0000 (19:39 +0000)
src/lib/http/testutils/test_http_client.h

index 3b7b8219fc07951b37ac100a7788d097dbc178b4..f97a4cfd05ddb13003a0b0de61a39e8e49b82af8 100644 (file)
@@ -166,9 +166,6 @@ public:
             }
 
             // Remove the part of the request which has been sent.
-            if (bytes_transferred >= request.size()) {
-                bytes_transferred = request.size();
-            }
             request.erase(0, bytes_transferred);
 
             // Continue sending request data if there are still some data to be
@@ -433,9 +430,6 @@ public:
             }
 
             // Remove the part of the request which has been sent.
-            if (bytes_transferred >= request.size()) {
-                bytes_transferred = request.size();
-            }
             request.erase(0, bytes_transferred);
 
             // Continue sending request data if there are still some data to be
@@ -490,7 +484,6 @@ public:
             } else {
                 receivePartialResponse();
             }
-
         });
     }
 
@@ -561,6 +554,9 @@ public:
         stream_.lowest_layer().close();
     }
 
+    /// @brief Returns the HTTP response string.
+    ///
+    /// @return string containing the response.
     virtual std::string getResponse() const {
         return (response_);
     }