Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/net/websocket: override the Host header #33307
What version of Go are you using (
@FiloSottile Thanks for the comment.
Hm, any particular part of the protocol you're thinking of? I'm not at all familiar with the specification, and all I can see in the RFC is the following:
This to me sounds like it ought to be possible to define the Host header independently of the location host; RFC2616 is HTTP and there you'd expect full freedom in setting Host.
Regarding the documentation, do you mean that the "Additional header fields" in the documentation of
And yep, thanks for the reference to