Are the built-in HTTP servers production quality?
Paul Morrow
pm_mon at yahoo.com
Sun Jul 18 11:29:57 EDT 2004
Irmen de Jong wrote:
>
> For starters, the SimpleHTTPServer reports the wrong Content-Length.
> See my patch at http://tinyurl.com/56frb
>
Yes, something is wrong there. I wonder though if it makes sense to
continue to open text files in 'text' mode, so that the treatment of
newlines is normalized, but then adjust the content-length to be the
length of the (newline converted) string as read from the file.
More information about the Python-list
mailing list