durusmail: quixote-users: Premature end of web page w/ IE6
Premature end of web page w/ IE6
2002-01-23
2002-01-23
2002-01-23
2002-01-23
Premature end of web page w/ IE6
David Ascher
2002-01-23
Neil Schemenauer wrote:

> (found in the Active State cookbook):
>
>     import sys
>
>     if sys.platform == "win32":
>         import os, msvcrt
>         msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)

Yeah, I learned that trick too when editing the collection into the
O'Reilly Python Cookbook. =)

> I'll see about integrating this into Quixote.  David, could you could
> try testing IE6 after adding this bit of code to your Quixote CGI script
> and re-enabling the content-length header?

Works for me.

Thanks for the digging, Neil!

--david

PS: I like what I've seen of Quixote so far -- feels very Pythonic.


reply