mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
LibProtocol: Fix non-constant usage of PAGE_SIZE
This commit is contained in:
committed by
Andreas Kling
parent
d92b6423bf
commit
dd6921bfc6
@@ -37,7 +37,7 @@ void Request::stream_into(OutputStream& stream)
|
||||
};
|
||||
|
||||
notifier->on_ready_to_read = [this, &stream, user_on_finish = move(user_on_finish)] {
|
||||
constexpr size_t buffer_size = PAGE_SIZE;
|
||||
constexpr size_t buffer_size = 4096;
|
||||
static char buf[buffer_size];
|
||||
auto nread = m_internal_stream_data->read_stream.read({ buf, buffer_size });
|
||||
if (!stream.write_or_error({ buf, nread })) {
|
||||
|
||||
Reference in New Issue
Block a user