Skip to content

Commit d520aca

Browse files
committed
http/Client: eliminate redundant ReadBuffer() call
1 parent 925f81d commit d520aca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/http/Client.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ HttpClient::OnBufferedData()
11981198
/* this empty check is needed just in case
11991199
InvokeReady() has drained it */
12001200
if (const auto r = socket.ReadBuffer(); !r.empty()) [[likely]]
1201-
return FeedBody(socket.ReadBuffer());
1201+
return FeedBody(r);
12021202

12031203
return BufferedResult::OK;
12041204

0 commit comments

Comments
 (0)