-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
If the server responds with a redirect, for example 302 Found, I think clients should try at the new location. I don't know golang but I believe it fails here, instead of getting the Location
header and trying a new request:
Lines 222 to 227 in 5246b00
// 检查响应头以验证握手是否成功 | |
// Checks the response headers to verify if the handshake was successful | |
func (c *connector) checkHeaders(resp *http.Response) error { | |
if resp.StatusCode != http.StatusSwitchingProtocols { | |
return fmt.Errorf("unexpected status code: %d", resp.StatusCode) | |
} |
I ran into this issue when using https://github.com/henrygd/beszel behind a reverse proxy.
Metadata
Metadata
Assignees
Labels
No labels