File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments