#1087: PEP-3333 compliance: Unicode response headers
------------------------+---------------------------------------------------
Reporter: guest | Owner: fumanchu
Type: defect | Status: new
Priority: normal | Milestone:
Component: wsgiserver | Keywords:
------------------------+---------------------------------------------------
According to PEP-3333, a WSGI application returns header names and values
as "native strings" [1]. These are defined as "always implemented using
the type named str", which means unicode for Python 3.
CherryPy (trunk and the 3.2 branch) breaks if a WSGI header name or value
is not of type "bytes". This makes it impossible to run a WSGI conform
application on top of cherrypy in a Python 3 environment.
[1]
http://www.python.org/dev/peps/pep-3333/#a-note-on-string-types
--
Ticket URL: <
http://www.cherrypy.org/ticket/1087>
CherryPy <
http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework