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: Http Server (request) is not working with enabled Proxy Protocol #64365
Comments
haproxy proxy protocol support is out of scope for net/http |
Hi @seankhliao My point was not to implement the complete Proxy Protocol V1 and V2 Spec. I can also submit a PR to add that specific thing. What do you think? |
it's still out of scope, proxy is not http. |
@seankhliao The HTTP message etc is still the same. |
@seankhliao |
Go version
go1.21.4
Reproducibility
What operating system and processor architecture are you using (
go env
)?What did you do?
When running a go http server, the server response of an incoming request is always
HTTP 400 Bad Request
when the incoming request is using theProxy Protocol
.What did you expect to see?
The expectation is, that the response of the http server is the same for a request with and without the
Proxy Protocol
.Think to pars or get something from the
Proxy Protocol
at the http layer is not required, that could be done with aTCP
server instance, but the request should just be accepted like the rest.What did you see instead?
The response of the request is always
HTTP 400 Bad Request
The text was updated successfully, but these errors were encountered: