Open g00nix opened 3 years ago
I think this bug will appear on http2 websites. One solution would be to shut down http2 the same way you can do this on http.Server, by setting TLSNextProto to nil. The problem is that shutting http2 completely is not future proof. I found online solutions for TLS+http2 proxy, but not in Go. This is because most Go HTTPS proxies are based on Hijack which was not implemented for http2.
I have no idea at this point if I am wrong or not and if I should invest more time into this direction. If anybody has any ideas or advice on this topic, I am super interested.
Any update on this? Currently slogging through trying to force http1 but no matter what I do the server im forward proxying to decides h2.
It seems go Hijack
method doesn't work for h2, and we need some other solution. I'm not sure I'll have time to investigate, but will keep you posted.
I am running he goproxy as a HTTPS proxy:
This works perfect till I curl small websites with curl. However if I add the proxy to a browser, i get a flood of panic messages in the log: