Skip to content

Commit

Permalink
Revert "fix(#188): add headers from original request to redirects"
Browse files Browse the repository at this point in the history
  • Loading branch information
denopink authored Jul 12, 2024
1 parent 173fb28 commit a3a9a47
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions internal/websocket/ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,15 +411,6 @@ func (ws *Websocket) newHTTPClient(mode ipMode) (*http.Client, error) {
return nil, err
}

// update client redirect to send all headers on subsequent requests
client.CheckRedirect = func(req *http.Request, via []*http.Request) error {
// Copy headers from the first request to original requests
for key, value := range via[0].Header {
req.Header[key] = value
}
return nil
}

// Override config.NewClient()'s Transport and update it's DialContext with the provided mode.
transport, err := config.Transport.NewTransport(config.TLS)
if err != nil {
Expand Down

0 comments on commit a3a9a47

Please sign in to comment.