LibWeb: Delete unused BufferPolicy from fetch Request

This is no longer needed since all requests are unbuffered.
This commit is contained in:
Aliaksandr Kalenik 2025-11-17 03:47:06 +01:00 committed by Tim Flynn
parent 16b0f1e6c2
commit 0eb28a1a54
Notes: github-actions[bot] 2025-11-20 11:30:41 +00:00
3 changed files with 0 additions and 17 deletions

View file

@ -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;