cpython/Lib
Guido van Rossum 01fc65d92f From: conrad@cgl.ucsf.edu (Conrad Huang %CGL)
To: python-list@cwi.nl
Date: 13 May 98 18:33:11 GMT

I think I found a bug in CGIHTTPServer.py.  (Does anyone care? :-)
I was trying to use it as the web server for uploading files.
Python CGI scripts (using the CGI module) that worked for other
servers (e.g., Netscape Enterprise server) hang when run from
CGIHTTPServer.  The problem is that the content type parameters,
in particular the boundary parameter, were not passed through to
the CGI scripts, thus making the MIME parsing code choke.

My simple-minded fix is:

	% diff CGIHTTPServer.py /usr/local/lib/python1.5/CGIHTTPServer.py
	137,140c136
	<           if self.headers.typeheader is None:
	<               env['CONTENT_TYPE'] = self.headers.type
	<           else:
	<               env['CONTENT_TYPE'] = self.headers.typeheader
	---
	>           env['CONTENT_TYPE'] = self.headers.type

Conrad
1998-05-13 20:13:24 +00:00
..
dos-8x3 The usual 1998-04-09 21:47:39 +00:00
lib-old Put quotes around the filename, so spaces in filenames work. 1998-04-28 16:03:03 +00:00
lib-stdwin
lib-tk When a file name is selected ("OK" button, <Return> in the filename entry), 1998-05-06 17:28:23 +00:00
plat-aix3
plat-aix4
plat-freebsd2 New files from Thomas Gellekum 1998-05-06 15:14:36 +00:00
plat-freebsd3 New files from Thomas Gellekum 1998-05-06 15:14:36 +00:00
plat-generic
plat-irix5 Mass check-in after untabifying all files that need it. 1998-03-26 20:23:01 +00:00
plat-irix6 Mass check-in after untabifying all files that need it. 1998-03-26 20:23:01 +00:00
plat-linux1
plat-linux2 Regenerated on a newer Linux version. 1997-05-09 02:21:06 +00:00
plat-netbsd1 More generated files for netbsd 1.x, by Anders Andersen. 1997-12-03 18:44:57 +00:00
plat-next3
plat-sunos4
plat-sunos5 Added stropts.h to the list of files automatically regenerated. 1997-12-02 14:37:20 +00:00
plat-win Added table of WSA error codes. 1998-05-06 13:48:04 +00:00
test Reduce memory requirements. 1998-05-12 13:21:31 +00:00
aifc.py Small corrections to comments that were cloned from aifc; moreover 1998-04-23 21:40:02 +00:00
anydbm.py Oops, I had 'n' and 'c' mixed up in my mind. Get rid of the comment 1998-04-28 15:23:09 +00:00
audiodev.py
base64.py Set correct RFC number. Open input in binary. 1997-05-08 23:10:42 +00:00
BaseHTTPServer.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
Bastion.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
bdb.py Use sys.exc_info() where needed. 1997-09-29 23:22:12 +00:00
binhex.py A few lines were indented using spaces instead of tabs -- fix them. 1998-03-26 20:56:10 +00:00
bisect.py A few lines were indented using spaces instead of tabs -- fix them. 1998-03-26 20:56:10 +00:00
builtin.py
calendar.py
cgi.py Make Tim O'Malley's requested change: in FieldStorage.__init__(), when 1998-05-08 19:55:51 +00:00
CGIHTTPServer.py From: conrad@cgl.ucsf.edu (Conrad Huang %CGL) 1998-05-13 20:13:24 +00:00
cmd.py
cmp.py
cmpcache.py
code.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
colorsys.py
commands.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
compileall.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
ConfigParser.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
copy.py A few lines were indented using spaces instead of tabs -- fix them. 1998-03-26 20:56:10 +00:00
copy_reg.py Added some minimal comments and tweaked lay-out a bit. 1997-05-20 18:03:22 +00:00
dbhash.py
dircache.py
dircmp.py
dis.py Added docstrings (contributed by Martin von Loewis). 1997-11-18 15:47:55 +00:00
dospath.py REMOVE samefile(), sameopenfile(), samestat() -- these cannot be made 1998-05-02 00:47:09 +00:00
dumbdbm.py
dump.py
exceptions.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
fileinput.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
find.py
fnmatch.py Convert all remaining *simple* cases of regex usage to re usage. 1997-10-22 21:00:49 +00:00
formatter.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
fpformat.py re -> regex conversions by Sjoerd. 1997-10-24 14:46:16 +00:00
ftplib.py parse150(): Simplify RE used to parse the message a little, taking advantage 1998-04-27 14:39:44 +00:00
getopt.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
getpass.py Be nicer to systems that have neither termios nor msvcrt. 1998-04-13 20:22:21 +00:00
glob.py Convert all remaining *simple* cases of regex usage to re usage. 1997-10-22 21:00:49 +00:00
gopherlib.py A few lines were indented using spaces instead of tabs -- fix them. 1998-03-26 20:56:10 +00:00
grep.py Added pgrep() function, which is like grep/egrep/emgrep but uses Perl 1997-10-22 20:44:58 +00:00
gzip.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
htmlentitydefs.py
htmllib.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
httplib.py Patch by Tim O'Malley for servers that send a response looking just like 1998-01-19 22:25:24 +00:00
ihooks.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
imaplib.py Take out the check for AUTH-LOGIN or AUTH=LOGIN in login() -- some 1998-05-05 03:08:46 +00:00
imghdr.py Allow open file as parameter (must be seekable) (Jack) 1997-10-08 15:22:32 +00:00
keyword.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
knee.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
linecache.py
locale.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
macpath.py Instead of 'import mac', use 'import os' -- this way, the path syntax 1998-03-03 21:49:01 +00:00
macstat.py
macurl2path.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
mailbox.py UnixMailbox: don't be fooled by lines that begin with "From " but 1998-04-03 16:04:05 +00:00
mailcap.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
Makefile Remove .pyo files like .pyc files. 1997-10-20 23:16:58 +00:00
mhlib.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
mimetools.py Avoid using the obsolete rand module; and improve the randomness 1998-04-11 03:06:02 +00:00
mimetypes.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
MimeWriter.py Run the self-test (test.test_MimeWriter) when invoked as a script. 1998-04-23 13:34:57 +00:00
mimify.py Sjoerd writes: When a multipart message is incomplete, mimify crashes. 1998-02-27 14:40:38 +00:00
multifile.py A few lines were indented using spaces instead of tabs -- fix them. 1998-03-26 20:56:10 +00:00
mutex.py
newimp.py
nntplib.py A few lines were indented using spaces instead of tabs -- fix them. 1998-03-26 20:56:10 +00:00
ntpath.py REMOVE samefile(), sameopenfile(), samestat() -- these cannot be made 1998-05-02 00:47:09 +00:00
nturl2path.py Allow paths without drive specifier (Jack). 1997-08-12 14:47:24 +00:00
os.py Reindented according to new standard, without tabs. 1997-12-05 21:24:30 +00:00
packmail.py Put quotes around the filename, so spaces in filenames work. 1998-04-28 16:03:03 +00:00
pdb.doc
pdb.py A working version of the 'args' command (it prints the current values 1998-02-25 20:50:32 +00:00
persist.py
pickle.py Whoops! Add a missing 'instantiated = 1' to load_inst(); otherwise it 1998-04-13 18:08:45 +00:00
pipes.py Convert all remaining *simple* cases of regex usage to re usage. 1997-10-22 21:00:49 +00:00
poly.py
popen2.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
poplib.py Version with docstrings and some other changes, by Piers Lauder. 1998-04-09 13:50:55 +00:00
posixfile.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
posixpath.py Added doc strings and reindented according to new standard, without tabs. 1997-12-05 19:04:51 +00:00
pprint.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
profile.doc
profile.py A few lines were indented using spaces instead of tabs -- fix them. 1998-03-26 20:56:10 +00:00
pstats.py Give in to Timmy's Tedious Tab Theorem. 1998-03-23 15:31:22 +00:00
pty.py
py_compile.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
pyclbr.py re -> regex conversions by Sjoerd. 1997-10-24 14:46:16 +00:00
Queue.py Replace all calls to acquire_lock() and release_lock() with acquire() 1998-04-29 14:29:32 +00:00
quopri.py A few lines were indented using spaces instead of tabs -- fix them. 1998-03-26 20:56:10 +00:00
random.py Correction to vonmisesvariate() by Magnus Kessler: it should take and 1998-04-06 14:12:13 +00:00
re.py AMK's latest 1998-04-03 21:47:12 +00:00
reconvert.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
regex_syntax.py Added "new" symbol defns for RE_ANSI_HEX and RE_NO_GNU_EXTENSIONS -- 1997-10-22 16:28:53 +00:00
regsub.py Store the current regex syntax along with the regular expression 1997-02-18 18:52:55 +00:00
repr.py
rexec.py A few lines were indented using tabs instead of spaces -- fix them. 1998-03-26 22:10:50 +00:00
rfc822.py Added a __delitem__ to the Message class. 1998-04-02 21:33:20 +00:00
rlcompleter.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
robotparser.py Give in to tabnanny 1998-04-06 14:29:28 +00:00
sched.py
sgmllib.py Fix regexp for attrfind; bug reported by Lars Marius Garshol 1998-04-16 21:04:26 +00:00
shelve.py Give in to tabnanny. 1998-04-06 14:14:25 +00:00
shutil.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
SimpleHTTPServer.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
site.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
smtplib.py Add optional argument to help(). 1998-04-03 17:03:13 +00:00
sndhdr.py
SocketServer.py Explicitly close rfile and wfile in StreamRequestHandler.finish() -- 1998-04-03 16:49:52 +00:00
stat.py
statcache.py
string.py As Tim Peters points out, ``from string import *'' should not set re to None. 1998-04-20 14:01:00 +00:00
StringIO.py Patch by Lars Wirzenius to allow f.readline(length). 1997-07-25 14:56:01 +00:00
stringold.py As Tim Peters points out, ``from string import *'' should not set re to None. 1998-04-20 14:01:00 +00:00
sunau.py Small corrections to comments that were cloned from aifc; moreover 1998-04-23 21:40:02 +00:00
sunaudio.py
symbol.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
tabnanny.py typo in error message (fname vs. file). 1998-04-28 16:01:13 +00:00
telnetlib.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
tempfile.py On the Mac, create the Temporary Items folder if it does not exist yet. 1998-04-28 16:03:34 +00:00
threading.py New Java-style threading module. The doc strings are in a separate module. 1998-04-09 22:01:42 +00:00
threading_api.py New Java-style threading module. The doc strings are in a separate module. 1998-04-09 22:01:42 +00:00
toaiff.py
token.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
tokenize.py Differentiate between NEWLINE token (an official newline) and NL token 1998-04-03 16:05:38 +00:00
traceback.py Add obvious needed else clause to format_exception(). 1998-03-18 17:48:06 +00:00
tty.py
types.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
tzparse.py Convert all remaining *simple* cases of regex usage to re usage. 1997-10-22 21:00:49 +00:00
urllib.py Patches to make the proxy code work again. (Why does that always break 1998-05-05 13:58:13 +00:00
urlopen.py
urlparse.py Add Gopher to list of protocols that support query strings. 1998-01-19 22:27:21 +00:00
user.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
UserDict.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
UserList.py
util.py
uu.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
wave.py Small corrections to comments that were cloned from aifc; moreover 1998-04-23 21:40:02 +00:00
whatsound.py Turns out whatsound.py and sndhdr.py were identical modules. 1997-10-04 20:29:17 +00:00
whichdb.py Support byte-swapped dbhash (bsddb) files. Found by Ben Sayer. 1998-04-28 15:41:03 +00:00
whrandom.py Andrew Kuchling writes: 1998-02-16 14:52:42 +00:00
xdrlib.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
xmllib.py Sjoerd's latest. 1998-04-03 16:02:39 +00:00
zmod.py