diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2004-08-07 19:02:19 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2004-08-07 19:02:19 (GMT) |
commit | b839c1f33f842720e9592c4ef598688bed94266f (patch) | |
tree | a22019dc52aeb014f18254859f2850ff577d02b8 /Lib/SimpleHTTPServer.py | |
parent | 34553388ef9430d5e4d127fabb3fba89501d5486 (diff) | |
download | cpython-b839c1f33f842720e9592c4ef598688bed94266f.zip cpython-b839c1f33f842720e9592c4ef598688bed94266f.tar.gz cpython-b839c1f33f842720e9592c4ef598688bed94266f.tar.bz2 |
[Bug #866222] Update docstrings.
Diffstat (limited to 'Lib/SimpleHTTPServer.py')
-rw-r--r-- | Lib/SimpleHTTPServer.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/SimpleHTTPServer.py b/Lib/SimpleHTTPServer.py index d58bdc3..d58f52f 100644 --- a/Lib/SimpleHTTPServer.py +++ b/Lib/SimpleHTTPServer.py @@ -25,9 +25,8 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Simple HTTP request handler with GET and HEAD commands. 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. + 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 request omits the actual contents of the file. @@ -168,7 +167,7 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): usable for a MIME Content-type header. The default implementation looks the file's extension - up in the table self.extensions_map, using text/plain + 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. |