]> granicus.if.org Git - python/commit
Changed list_directory() somewhat. It is now only called when there
authorGuido van Rossum <guido@python.org>
Sun, 21 May 2000 16:25:29 +0000 (16:25 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 21 May 2000 16:25:29 +0000 (16:25 +0000)
commit1d10f3eac2248ca0af65eeb6414d3ef841419761
tree7be7c41fe683b059552dec00c9477e9f2262af30
parent4355093f94299572498d31fa50eec38df721cadb
Changed list_directory() somewhat.  It is now only called when there
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.
Lib/SimpleHTTPServer.py