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 I connect to the websocket server using an unauthorized websocket url, the connect function does not return an error.
I expect the connection to fail because the server will return a 401 status code.
The corresponding code is resty/websocket/client.lua(line 197)
m, err = re_match(header, [[^\s*HTTP/1\.1\s+]], "jo")
why not change this line to
m, err = re_match(header, [[^\s*HTTP/1\.1\s+101]], "jo")
The text was updated successfully, but these errors were encountered:
When I connect to the websocket server using an unauthorized websocket url, the connect function does not return an error.
I expect the connection to fail because the server will return a 401 status code.
The corresponding code is resty/websocket/client.lua(line 197)
m, err = re_match(header, [[^\s*HTTP/1\.1\s+]], "jo")
why not change this line to
m, err = re_match(header, [[^\s*HTTP/1\.1\s+101]], "jo")
The text was updated successfully, but these errors were encountered: