You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an HTTP proxy is used, there is no way to customize the headers in the initial CONNECT request. In some situations, a HTTP proxy may require certain User-Agents or other headers. golang added support for this in net/http in 1.8. The golang issue is documented here with support added in 1.8 as documented here.
Note, this is not the same as providing a requestHeader to Conn.NewClient or Dialer.Dial. These headers are only present after the initial CONNECT request to the HTTP proxy.
@AlexVulaj, I'm interested in moving this issue forward. There's an implementation PR that looks like it's no longer maintained (#605). What should the approach be when it comes to getting the PR in a mergable state?
Activity
Fenny commentedon Dec 9, 2019
Untill this feature gets properly implemented into the main branch, you can use my version.
https://github.com/fenny/websocket
Feature issue gorilla#479
Fix issue gorilla#479
fix issue gorilla#479
michel-laterman commentedon Jun 3, 2025
@AlexVulaj, I'm interested in moving this issue forward. There's an implementation PR that looks like it's no longer maintained (#605). What should the approach be when it comes to getting the PR in a mergable state?
EDIT: I went ahead and created another PR #988