Looks like someone else has been bitten as well.
shutils.copyfileobj works fine if the file is open as binary. The
problem seems to be in SimpleHTTPServer.send_head(), which opens "css"
files as text file.
I wonder if it's necessary to differentiate a text file and a binary
file here at all. Why not always open as "rb".
On Dec 26, 2007 5:10 AM, Tzury Bar Yochay <[EMAIL PROTECTED]> wrote:
>
> Yep!
> CRLF vs. LF ('\r\n' vs. '\n') seems to be the problem on windows when
> a text editor uses CR+LF.
>
> I looked through the web.py code (v 0.22) and here are the results:
>
> do_GET calls copyfile which says in its docstring that it should be
> override when
> using CRLF (see below).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---