0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 18:18:56 +02:00

modules/webhook: Use dynamic buffer for output.

This commit is contained in:
Jason Volk 2019-01-19 16:56:20 -08:00
parent de8d14da5b
commit 0a3db57bc2

View file

@ -135,7 +135,11 @@ github_handle(client &client,
headers.at("X-GitHub-Delivery")
};
thread_local char buf[2048];
const unique_buffer<mutable_buffer> buf
{
48_KiB
};
std::stringstream out;
pubsetbuf(out, buf);