Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes unicode error with newest gevent #221

Closed
wants to merge 2 commits into from

Conversation

bobvandevijver
Copy link

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
Copy link

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

@kennedyshead
Copy link
Collaborator

Exists in #232 and #237

dn0 added a commit to erigones/gevent-socketio that referenced this pull request Sep 3, 2016
…ing changes/merge requests:

    * Setting Content-Length Headers to Strings - abourget#241 (by https://github.com/richardardrichard)
    * Stop re-raising exception on dead websocket - abourget#240 (by https://github.com/richardardrichard)
    * Fixed import to support Django>=1.9 - abourget#236 (by https://github.com/chrisspen)
    * Fix cfg_addr error on socket object - copied from abourget#200 (by https://github.com/shuoli84)
    * Fixes unicode error with newest gevent - abourget#221 (by https://github.com/bobvandevijver)
    * Fixes memory leak issue - abourget#225 (by https://github.com/chrismeyersfsu)
    * Full Python 2+3 support - commit 12da966 (by https://github.com/Eugeny)
    * Travis script fix  - commit 13cd65e (by https://github.com/Eugeny)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants