mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Delete unused BufferPolicy from fetch Request
This is no longer needed since all requests are unbuffered.
This commit is contained in:
committed by
Tim Flynn
parent
16b0f1e6c2
commit
0eb28a1a54
Notes:
github-actions[bot]
2025-11-20 11:30:41 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/0eb28a1a545 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6839 Reviewed-by: https://github.com/trflynn89 ✅
@@ -78,10 +78,6 @@ WebIDL::ExceptionOr<GC::Ref<EventSource>> EventSource::construct_impl(JS::Realm&
|
||||
// 12. Set request's initiator type to "other".
|
||||
request->set_initiator_type(Fetch::Infrastructure::Request::InitiatorType::Other);
|
||||
|
||||
// AD-HOC: We must not buffer the response as the connection generally never ends, thus we can't wait for the end
|
||||
// of the response body.
|
||||
request->set_buffer_policy(Fetch::Infrastructure::Request::BufferPolicy::DoNotBufferResponse);
|
||||
|
||||
// 13. Set ev's request to request.
|
||||
event_source->m_request = request;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user