Lawouach / WebSocket-for-Python

WebSocket client and server library for Python 2 and 3 as well as PyPy (ws4py 0.5.1)
https://ws4py.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
1.12k stars 288 forks source link

Improve Origin handling in Client #154

Closed rdbhost closed 9 years ago

rdbhost commented 9 years ago

This change makes the Origin comply with rfc 6454, in that it is now scheme://hostname[:port], in lieu of full url.

Also allows overriding of default Origin with an Origin header in the headers parameter to constructor.

Thank you.