Firefox: all I get is XML page source code

MRAB python at
Sun Apr 18 19:12:58 EDT 2010

Gnarlodious wrote:
> Thanks for that, for some reason I assumed sys.stdout.buffer.write
> sent the http header but I was wrong.
> Even so, Firefox still refused to render prperly, but this works/:
> content-type: application/xhtml+xml; charset=utf-8\n\n
Perhaps it's not so much that there's a problem with Firefox but that
the other browsers are guessing what the content type should be if it's
missing. (Refusing to guess is a Pythonic trait. :-))

More information about the Python-list mailing list