output/httpd: move buffer to stack

This commit is contained in:
Max Kellermann
2022-07-12 10:08:03 +02:00
parent e861d4f83d
commit ff3d8509ac
2 changed files with 2 additions and 5 deletions

View File

@@ -157,6 +157,8 @@ HttpdOutput::ReadPage() noexcept
unflushed_input = 0;
}
std::byte buffer[32768];
size_t size = 0;
do {
size_t nbytes = encoder->Read(buffer + size,