Re: Firefox: all I get is XML page source code

2010-04-18 Thread MRAB
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

Re: Firefox: all I get is XML page source code

2010-04-18 Thread Gnarlodious
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 -- Gnarlie -- http://mail.python.org/mailman/listinfo/python-list

Firefox: all I get is XML page source code

2010-04-18 Thread Gnarlodious
Wit's end on this. I have a script outputting a stream with: sys.stdout.buffer.write(("""\n The script works normally in 2 browsers, but in Firefox all I see is source code. Also, running the script in iPhone from my server shows the same source code. Which is a little strange since iPhone and Sa