gorilla/websocket

[Question] Why are username and password not allowed in websocket URIs?

xray-bit opened this issue · 2 comments

websocket/client.go

Lines 183 to 186 in 1d54655

if u.User != nil {
// User name and password are not allowed in websocket URIs.
return nil, nil, errMalformedURL
}

Postman and other similar tools support this type of URI. I also did not find any relevant instructions in RFC6455.

See WebSocket URIs in RFC 6455. User information is not included in the WebSocket URI syntax.

thanks. sorry i missed that.