Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http: Transport returns chunked Response with ContentLength 0 [js/wasm] #49108

Closed
bradfitz opened this issue Oct 22, 2021 · 2 comments
Closed
Labels
arch-wasm WebAssembly issues FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. OS-JS

Comments

@bradfitz
Copy link
Contributor

http.Response.ContentLength should be -1 on a chunked streaming response body without a Content-Length header.

But with js/wasm, it's currently set to 0:

https://github.com/golang/go/blob/master/src/net/http/roundtrip_js.go#L133-L143

/cc @neild @johanbrandhorst

@catzkorn
Copy link
Contributor

I intend to submit a fix for this

@gopherbot
Copy link

Change https://golang.org/cl/358134 mentions this issue: net/http: correct chunked encoding Content-Length for js/wasm

@seankhliao seankhliao added arch-wasm WebAssembly issues NeedsFix The path to resolution is known, but the work has not been done. OS-JS labels Oct 24, 2021
@golang golang locked and limited conversation to collaborators Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly issues FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. OS-JS
Projects
None yet
Development

No branches or pull requests

4 participants