Also call cork while doing so
This commit is contained in:
@@ -29,8 +29,10 @@ extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) {
|
|||||||
});
|
});
|
||||||
res->onData([res](std::string_view chunk, bool isEnd) {
|
res->onData([res](std::string_view chunk, bool isEnd) {
|
||||||
if (isEnd) {
|
if (isEnd) {
|
||||||
res->write("something ahead");
|
res->cork([res, chunk]() {
|
||||||
res->end(chunk);
|
res->write("something ahead");
|
||||||
|
res->end(chunk);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).any("/:candy/*", [](auto *res, auto *req) {
|
}).any("/:candy/*", [](auto *res, auto *req) {
|
||||||
|
|||||||
Reference in New Issue
Block a user