[Python-checkins] python/dist/src/Lib SimpleHTTPServer.py, 1.20,
1.21
akuchling at users.sourceforge.net
akuchling at users.sourceforge.net
Sat Aug 7 21:02:23 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7098
Modified Files:
SimpleHTTPServer.py
Log Message:
[Bug #866222] Update docstrings.
Index: SimpleHTTPServer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/SimpleHTTPServer.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** SimpleHTTPServer.py 16 Oct 2003 05:53:16 -0000 1.20
--- SimpleHTTPServer.py 7 Aug 2004 19:02:19 -0000 1.21
***************
*** 26,32 ****
This serves files from the current directory and any of its
! subdirectories. It assumes that all files are plain text files
! unless they have the extension ".html" in which case it assumes
! they are HTML files.
The GET and HEAD requests are identical except that the HEAD
--- 26,31 ----
This serves files from the current directory and any of its
! subdirectories. The MIME type for files is determined by
! calling the .guess_type() method.
The GET and HEAD requests are identical except that the HEAD
***************
*** 169,173 ****
The default implementation looks the file's extension
! up in the table self.extensions_map, using text/plain
as a default; however it would be permissible (if
slow) to look inside the data to make a better guess.
--- 168,172 ----
The default implementation looks the file's extension
! up in the table self.extensions_map, using application/octet-stream
as a default; however it would be permissible (if
slow) to look inside the data to make a better guess.
More information about the Python-checkins
mailing list