Closed bjacobson26 closed 2 months ago
I need to pass in authorization headers when connecting to a websocket server. Seems like this currently is not supported.
Sure it is:
local ws = http_websocket.new_from_uri(myuri)
ws.request.headers:append("Authorization", mything)
assert(ws:connect())
Hi there,
I need to pass in authorization headers when connecting to a websocket server. Seems like this currently is not supported.
I patched it locally to work:
Wondering if there is any reason I shouldn't do this and/or if you'd like me to open a PR for this.
Thanks!