abourget / gevent-socketio

Official repository for gevent-socketio
http://readthedocs.org/docs/gevent-socketio/en/latest/
BSD 3-Clause "New" or "Revised" License
1.21k stars 331 forks source link

Fixes unicode error with newest gevent #221

Closed bobvandevijver closed 8 years ago

bobvandevijver commented 9 years ago

Gevent only accepts unicode string as value for headers, otherwise the following error is thrown:

UnicodeError: ('The value must be a native string', 'Access-Control-Max-Age', 3600)

This PR fixes this problem.

tshirtman commented 8 years ago

test failure doesn't seem to be related (pip unable to find a gevent distribution)

kennedyshead commented 8 years ago

Exists in #232 and #237