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).

Is this is the approach taken in version 0.3?


# /usr/lib/python2.5/SimpleHTTPServer.py line: 161

    def copyfile(self, source, outputfile):
        """Copy all data between two file objects.

        The SOURCE argument is a file object open for reading
        (or anything with a read() method) and the DESTINATION
        argument is a file object open for writing (or
        anything with a write() method).

        The only reason for overriding this would be to change
        the block size or perhaps to replace newlines by CRLF
        -- note however that this the default server uses this
        to copy binary data as well.

        """
        shutil.copyfileobj(source, outputfile)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to