python 2.7 中的 httplib 二进制数据和 UnicodeDecodeError
我刚刚发现从 Python 2.7 开始,httplib
不再使用二进制数据,破坏了通过 HTTP 发送二进制数据的模块,一个例子是 PyAMF
- Python 错误:http://bugs.python.org/issue11898
- PyAMF 错误:http ://dev.pyamf.org/ticket/823
我正在寻找当前错误的解决方案,最好是不需要我修补 Python 的解决方案。仍然修补 PyAMF 接缝作为可接受的解决方案。
I just discovered that starting with Python 2.7, the httplib
doesn't work anymore with binary data, breaking modules that where sending binary data over HTTP, one example being PyAMF
- Python bug: http://bugs.python.org/issue11898
- PyAMF bug: http://dev.pyamf.org/ticket/823
I am looking for a solution to the current bug, preferably one that does not require me to patch Python. Still patching PyAMF seams as an acceptable solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎有一个 Python 2.7 的 PyAmf 版本。其他版本可以在此处找到。
Seems like there is a PyAmf version for python 2.7. other versions can be found here.