Unverified Commit f8c1ffcc authored by Kenton Varda's avatar Kenton Varda Committed by GitHub

Merge pull request #689 from capnproto/fix-chunked-test

Fix chunked body gather-write test.
parents c94a88e4 b3096736
......@@ -918,7 +918,9 @@ KJ_TEST("HttpClient chunked body gather-write") {
auto req = client->request(HttpMethod::POST, "/", HttpHeaders(table));
kj::ArrayPtr<const byte> bodyParts[] = {
{ 'f','o','o' }, { ' ' }, { 'b','a','r' }, { ' ' }, { 'b','a','z' }
"foo"_kj.asBytes(), " "_kj.asBytes(),
"bar"_kj.asBytes(), " "_kj.asBytes(),
"baz"_kj.asBytes()
};
req.body->write(kj::arrayPtr(bodyParts, kj::size(bodyParts))).wait(waitScope);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment