2008/12/28 Shooter <[email protected]>:
>
> Installed mod_wsgi 3.0-TRUNK (rev 1144) with Python 3k.  I specify
> Content-type in a test script as text/html, but the browser always
> receives it as text/plain.
>
> I used some fairly standard code:
>
> def application(environ, start_response):
>    outstr = 'Hello,<br />World!'
>    content_type = 'text/html'
>    status = '200 OK'
>    headers = [ ('Content-type', content_type),
>                ('Content-length', str(len(outstr))) ]
>    start_response(status, headers)
>    return [outstr]

Try revision 1145.

Was keeping reference to internal buffer of bytes object which had
been destroyed when Unicode strings and not byte strings were being
supplied in response headers and thus conversion to bytes was
required.

Graham

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to