net/http: Fetch API-based Transport panics when request has no body #60809
Labels
arch-wasm
WebAssembly issues
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
OS-JS
Milestone
The
req.Body.Close()
calls were refactored in CL 458395 to happen in the success/failure callbacks. The original location was inside anif req.Body != nil
block, but the new location missed that check, causingTransport.RoundTrip
to panic whenever the request doesn't have a body.CC @golang/js, @golang/wasm.
The text was updated successfully, but these errors were encountered: