summaryrefslogtreecommitdiff
path: root/Lib/SimpleHTTPServer.py
AgeCommit message (Collapse)AuthorLines
2001-02-09Correction after translation test.Eric S. Raymond-1/+1
2001-02-09String method conversion.Eric S. Raymond-3/+2
2001-01-26unnecessary semicolonJeremy Hylton-1/+1
2001-01-20added __all__ lists to a number of Python modulesSkip Montanaro-0/+1
added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.
2001-01-14- Use mimetypes.types_map to initialize extensions_map.Guido van Rossum-9/+9
- Change the default file type to application/octet-stream. - Add support to recognize .py, .c, .h files as text/plain (this is what I use most :-).
2000-09-04For this server to work on Windows, directories should use "/" as theGuido van Rossum-2/+3
separator in the href, not os.sep. Added a <title> tag to directory listings. Bumped version to 0.5.
2000-07-29Using shutil's function to copy data between file objects insteadMoshe Zadka-6/+2
of rolling our own. Note: This is my first sourceforge checkin. If you see anything funny about this patch, please let me know.
2000-05-21Changed list_directory() somewhat. It is now only called when thereGuido van Rossum-15/+34
is no index.htm[l] file, and when it is called, it also spits out the headers. When an index.htm[l] file is present, the regular (file access) path is followed. Also, when the guessed content-type matches text/*, open the file in text mode; otherwise in binary mode.
2000-05-09Add a simple directory listing function.Guido van Rossum-9/+38
1999-11-16Moshe Zadka writes: When deploying SimpleHTTPServer, I noticed aGuido van Rossum-1/+2
problem: it does not encode/decode the urls, which is wrong.
1999-05-03No need to import sys, time, socket or SocketServer. (Andrew Dalke & kjpylint)Guido van Rossum-4/+0
1998-12-07Patch by Jeff Rush:Guido van Rossum-1/+1
In SimpleHTTPServer.py, the server specified in test() should be BaseHTTPServer.HTTPServer, in case the request handler should want to reference the two attributes added by BaseHTTPServer.server_bind: self.server_name = hostname self.server_port = port There was some Bobo CGI code that wanted access to those attributes.
1998-12-07Open the file in binary mode -- so serving images from a Windows boxGuido van Rossum-1/+1
might actually work.
1998-03-26Mass check-in after untabifying all files that need it.Guido van Rossum-84/+84
1996-09-04Get rid of nobody_uid() and import pwd -- not used here.Guido van Rossum-12/+0
1995-09-18recognize a few more file typesGuido van Rossum-1/+8
1995-08-04Initial revisionGuido van Rossum-0/+161