You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix hang with stream requests without body for methods like OPTIONS
Fixes#2394
When using got.stream() with methods like OPTIONS, DELETE, or PATCH without a body, the request would hang indefinitely. This was because the condition to end the request only checked _cannotHaveBody (GET/HEAD) or _noPipe, missing the case where a stream request has no body to send.
0 commit comments