Skip to content

Commit 6244dd4

Browse files
fxdupontRazvan Becheriu
authored and
Razvan Becheriu
committed
[#3490] Addressed cosmetic comments
1 parent 2e2f3fa commit 6244dd4

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/lib/http/testutils/test_http_client.h

+3-7
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,6 @@ class TestHttpClient : public BaseTestHttpClient {
166166
}
167167

168168
// Remove the part of the request which has been sent.
169-
if (bytes_transferred >= request.size()) {
170-
bytes_transferred = request.size();
171-
}
172169
request.erase(0, bytes_transferred);
173170

174171
// Continue sending request data if there are still some data to be
@@ -433,9 +430,6 @@ class TestHttpsClient : public BaseTestHttpClient {
433430
}
434431

435432
// Remove the part of the request which has been sent.
436-
if (bytes_transferred >= request.size()) {
437-
bytes_transferred = request.size();
438-
}
439433
request.erase(0, bytes_transferred);
440434

441435
// Continue sending request data if there are still some data to be
@@ -490,7 +484,6 @@ class TestHttpsClient : public BaseTestHttpClient {
490484
} else {
491485
receivePartialResponse();
492486
}
493-
494487
});
495488
}
496489

@@ -561,6 +554,9 @@ class TestHttpsClient : public BaseTestHttpClient {
561554
stream_.lowest_layer().close();
562555
}
563556

557+
/// @brief Returns the HTTP response string.
558+
///
559+
/// @return string containing the response.
564560
virtual std::string getResponse() const {
565561
return (response_);
566562
}

0 commit comments

Comments
 (0)