[issue10980] http.server Header Unicode Bug

Armin Ronacher report at bugs.python.org
Sat Jan 22 13:45:54 CET 2011


New submission from Armin Ronacher <armin.ronacher at active-4.com>:

I have a critical bugfix that should make it into Python 3.2 even when it's in release candidate state.  Currently http.server.BaseHTTPServer encodes headers with ASCII charset.  This is at least in violation with PEP 3333 which demands that latin1 is used.

Because HTTP itself suggests latin1 (iso-8859-1) I strongly recommend changing this in BaseHTTPServer and not wsgiref.

The attached patch fixes that in a backwards compatible fashion.

----------
assignee: georg.brandl
components: Library (Lib)
files: http-server-unicode.patch
keywords: patch
messages: 126832
nosy: aronacher, georg.brandl
priority: normal
severity: normal
stage: patch review
status: open
title: http.server Header Unicode Bug
type: behavior
Added file: http://bugs.python.org/file20486/http-server-unicode.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10980>
_______________________________________


More information about the Python-bugs-list mailing list