Commit 6244dd4 1 parent 2e2f3fa commit 6244dd4 Copy full SHA for 6244dd4
File tree 1 file changed +3
-7
lines changed
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 {
166
166
}
167
167
168
168
// Remove the part of the request which has been sent.
169
- if (bytes_transferred >= request.size ()) {
170
- bytes_transferred = request.size ();
171
- }
172
169
request.erase (0 , bytes_transferred);
173
170
174
171
// Continue sending request data if there are still some data to be
@@ -433,9 +430,6 @@ class TestHttpsClient : public BaseTestHttpClient {
433
430
}
434
431
435
432
// Remove the part of the request which has been sent.
436
- if (bytes_transferred >= request.size ()) {
437
- bytes_transferred = request.size ();
438
- }
439
433
request.erase (0 , bytes_transferred);
440
434
441
435
// Continue sending request data if there are still some data to be
@@ -490,7 +484,6 @@ class TestHttpsClient : public BaseTestHttpClient {
490
484
} else {
491
485
receivePartialResponse ();
492
486
}
493
-
494
487
});
495
488
}
496
489
@@ -561,6 +554,9 @@ class TestHttpsClient : public BaseTestHttpClient {
561
554
stream_.lowest_layer ().close ();
562
555
}
563
556
557
+ // / @brief Returns the HTTP response string.
558
+ // /
559
+ // / @return string containing the response.
564
560
virtual std::string getResponse () const {
565
561
return (response_);
566
562
}
You can’t perform that action at this time.
0 commit comments