[Python-checkins] CVS: python/dist/src/Lib cgi.py
Barry A. Warsaw
bwarsaw@cnri.reston.va.us
Fri, 8 Jan 1999 12:42:05 -0500 (EST)
Update of /projects/cvsroot/python/dist/src/Lib
In directory anthem:/projects/python/develop/bwarsaw/pristine/Lib
Modified Files:
cgi.py
Log Message:
FieldStorage.__init__(): if there is no content-type header, use
text/plain for inner parts, but application/x-www-form-urlencoded
for outer parts. Honor any existing content-type header.
Lower down, if the content-type header is something we don't
understand (say because it there was a typo in the header coming from
the client), default to text/plain for inner parts, but
application/x-www-form-urlencoded for outer parts.