add option to pass Origin header in ws_connect#607
Conversation
|
Should we support |
I think no, in regular I don't know any use cases of
Maybe we should also add |
|
According to RFC WS server may require authorization, so adding other headers ( |
add option to pass Origin header in ws_connect
|
I've merged the PR. |
I used |
|
I have opened bug report for adding |
This PR allows passing of Origin header to
ws_connect().I believe WebSockets specification requires passing of Origin header (https://tools.ietf.org/html/rfc6455#section-4.2.2).
Some servers requires proper Origin headers (according to specification), so without this patch it's not possible to connect to such servers using
ws_connect().