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

when doing post to the h2c server: response.Write on hijacked connection #3

Open
ldemailly opened this issue Jan 9, 2021 · 1 comment

Comments

@ldemailly
Copy link

if you try to post against the server:

curl --http2 -d foo localhost:1010

you get

Listening [0.0.0.0:1010]...
2021/01/08 19:45:45 http: response.Write on hijacked connection from fmt.Fprintf (print.go:205)

(and no reply)

ps: curl --http2-prior-knowledge -d foo localhost:1010 does work, it's only when upgrading that something happens to the response writer... I think it's because the body is supposed to become bi directional but I haven't figured that out yet

@ldemailly ldemailly changed the title post == error when doing post to the h2c server: response.Write on hijacked connection Jan 9, 2021
@ldemailly
Copy link
Author

fix in golang/go#52882

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant