fix(http): Fixes Stream Bug#2522
Conversation
This reverts commit 5edea81.
|
Can you please fix the conflicts? And for future PRs, it is recommended not make PRs from the default branch as it most certainly will cause conflicts. You should always make a new branch for each PR. |
|
Whoops |
Package Changes Through bb74676There are 2 changes which include http with minor, http-js with minor Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
|
Also you need to run pnpm build |
I already ran it in the previous commits so it didn't change anything |
|
is your local |
This comment was marked as outdated.
This comment was marked as outdated.
Nevermind, I ran it twice and then it changed this time, so weird. |

The problem was that the stream while sending was blocking the await function, not returning
ReadableStreamand the headers after sending.This was fixed by (kind of) bringing back the
fetch_read_body, I actually wanted to name itfetch_stream_body, but I don't know how to set up the permissions.On ReadableStream start, it will call a different function (
fetch_read_body) as to not block the return of the headers onfetch_send.Fixes #2479 (comment)
@amrbashir