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
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
x/net/websocket: allow for reading and sending cookies, other HTTP headers #5178
What steps will reproduce the problem? Currently go.net/websocket provides no way to send cookies back over the initial WebSocket HTTP "Upgrade" request (the first request made). In my current application, because of this we must send another single useless HTTP request in order to get cookies back from the Go server. There was an discussion about this exact issue on the ML back in 2011 (see https://groups.google.com/forum/?fromgroups=#!topic/golang-nuts/5dxVevxkMa0) What is the expected output? go.net/websocket should provide an way to read and respond to cookies (and possibly other headers?) in an close manner to the way net/http allows you to.