In reply to your first point. This issue appears fixed in Python 2.6. I'm sure your aware, run the latest version when possible =)
Maybe someone else who knows more about webpy than me can deal with your other point. On Oct 2, 10:04 am, jonbho <[email protected]> wrote: > I've tracked it down, and found out that it only happens for CRLF- > terminated text files in /static/. The reason is that the HTTP > response header is sent with a "Content-length" calculated from the > length of the file (see lib/SimpleHTTPServer.py lines 94-95 (I'm using > Python 2.5), but the file is open in 'r' mode (ASCII), by which the OS > transforms the CRLF pairs in LFs, and so, less bytes are sent than the > HTTP header's Content-length promises. > > Fixes/workarounds are simple: never use CRLF terminators in static > text files, change the file opening mode from 'r' to 'rb' in line 84 > in the above mentioned file, etc... but I think this is a bug in > SimpleHTTPServer.py, and should be fixed "upstream". I dunno how to go > about this, so I'd be grateful for any help in reporting this or > getting it officially fix. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
