summaryrefslogtreecommitdiffstats
path: root/vbench/src/tests/http_client/http_client_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vbench/src/tests/http_client/http_client_test.cpp')
-rw-r--r--vbench/src/tests/http_client/http_client_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vbench/src/tests/http_client/http_client_test.cpp b/vbench/src/tests/http_client/http_client_test.cpp
index ce763e09b7d..55cb899f5cb 100644
--- a/vbench/src/tests/http_client/http_client_test.cpp
+++ b/vbench/src/tests/http_client/http_client_test.cpp
@@ -14,14 +14,14 @@ bool endsWith(const Memory &mem, const string &str) {
}
void readUntil(Input &input, SimpleBuffer &buffer, const string &end) {
- ByteInput in(input, 256);
+ ByteInput in(input);
while (!endsWith(buffer.get(), end)) {
int c = in.get();
if (c < 0) {
return;
}
buffer.reserve(1).data[0] = c;
- buffer.commit(1, 0);
+ buffer.commit(1);
}
}