-
Notifications
You must be signed in to change notification settings - Fork 888
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
Python 2.7.7 on Windows returns Unicode from mimetypes.guess_type #1360
Comments
It seems to me that this should be a webob bug with properly encoding the |
Yeah, it's not, however, because we use |
But it is being passed into the super constructor. |
Yeah, I guess I was thinking about it totally sucking that the Paste http server silently cast Unicode to str in headers and then when you switched servers it would start to fail but I suppose we could change webob to do the casting, because it wouldn't have the same fails-sometimes-doesnt-fail-other-times behavior. |
In any case, I think this commit is still fine, because it means we needn't make someone rely on the latest-greatest WebOb to get this workaround. |
Please release an update on PyPI. We are totally broken when developing on Windows with Pyramid 1.5.1. |
If I were you, I'd revert to Python 2.7.6 in the meantime, it's unclear when the next Pyramid release will be. |
I'll investigate pushing a bugfix release in the next day or so. |
This breaks static file serving under Pyramid, where it uses the
guess_type
API to determine the file type. See https://groups.google.com/forum/#!topic/pylons-devel/bq8XiKlGgv0 for more information.The text was updated successfully, but these errors were encountered: