[go-nuts] net/http Http Server - fail with Proxy Protocol header (v1/v2)

2024-04-15 Thread HappyTobi
Dear Gophers, I would like to bring to your attention. There is an “issue” with the Go standard implementation when handling HTTP requests that are extended by the proxy protocol v1 or v2. While the simple HTTP server works fine with regular requests, it fails when a proxy protocol is added.

[go-nuts] Re: net/http Http Server - fail with Proxy Protocol header (v1/v2)

2024-04-15 Thread HappyTobi
> > I think that answers your question. > > On Monday 15 April 2024 at 17:47:24 UTC+1 HappyTobi wrote: > >> Dear Gophers, >> >> I would like to bring to your attention. >> There is an “issue” with the Go standard implementation when handling >> HTTP r

[go-nuts] Re: net/http Http Server - fail with Proxy Protocol header (v1/v2)

2024-04-15 Thread HappyTobi
ttpd.apache.org/docs/2.4/mod/mod_remoteip.html#remoteipproxyprotocol > > And whilst HTTP is a text protocol (and can distingush between PROXY and > GET/POST/PUT etc), what about TLS? > > On Monday 15 April 2024 at 21:06:37 UTC+1 HappyTobi wrote: > >> Hi, >> >> thank