This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 martin.panter
收信人 Emil Stenström, ezio.melotti, gvanrossum, martin.panter, vstinner
日期 2016-01-09.00:02:26
SpamBayes Score -1.0
Marked as misclassified
Message-id <1452297747.11.0.0403234805295.issue26045@psf.upfronthosting.co.za>
In-reply-to
内容
Personally I am skeptical if suggesting UTF-8 for the body data is a good idea, but I can go along with it, since other people want it. But I do strongly question whether it is right to suggest UTF-8 for header fields. The RFC <https://tools.ietf.org/html/rfc7230#page-26> only mentions ASCII and Latin-1.

Newer protocols based on HTTP (RTSP comes to mind) do specify UTF-8 for the header, but that is probably out of scope of both the HTTP module and beginner-targetted errors.

If I were redoing this patch, I would drop all the changes except at the body.encode() line in Emil’s original post.
历史
日期 用户 动作 参数
2016-01-09 00:02:27martin.panter修改recipients: + martin.panter, gvanrossum, vstinner, ezio.melotti, Emil Stenström
2016-01-09 00:02:27martin.panter修改messageid: <1452297747.11.0.0403234805295.issue26045@psf.upfronthosting.co.za>
2016-01-09 00:02:27martin.panter链接issue26045 messages
2016-01-09 00:02:26martin.panter创建