Also call cork while doing so

This commit is contained in:
Alex Hultman
2020-01-12 20:23:43 +01:00
parent f0574d5fbb
commit d4e0032a3d
+4 -2
View File
@@ -29,8 +29,10 @@ extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) {
});
res->onData([res](std::string_view chunk, bool isEnd) {
if (isEnd) {
res->write("something ahead");
res->end(chunk);
res->cork([res, chunk]() {
res->write("something ahead");
res->end(chunk);
});
}
});
}).any("/:candy/*", [](auto *res, auto *req) {