[PEAK] unicode in content-type
alexander smishlajev
alex at ank-sia.com
Thu Feb 3 10:49:06 EST 2005
hello!
when i specify content-type in template, like this:
<html this:is="page" with:content-type="text/html">
<body>whatever</body>
</html>
TemplateDocument.content_type becomes unicode string. then wsgiref
refuses to send such value in http headers:
Traceback (most recent call last):
File "wsgiref\handlers.py", line 92, in run
self.result = application(self.environ, self.start_response)
File "peak\web\publish.py", line 235, in __call__
start_response(s,h)
File "wsgiref\handlers.py", line 185, in start_response
assert type(val) is StringType,"Header values must be strings"
AssertionError: Header values must be strings
best wishes,
alex.
More information about the PEAK
mailing list