]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
FieldStorage.__init__(): if there is no content-type header, use
authorBarry Warsaw <barry@python.org>
Fri, 8 Jan 1999 17:42:03 +0000 (17:42 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 8 Jan 1999 17:42:03 +0000 (17:42 +0000)
commit302331a3b6544c28a7c4d420fab18f397c844e80
tree1b0d5f8c71adfb6312861af8156c3461840dbfc7
parentb33f612f3323f26cad6b43211d8e59e7e84f3604
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.
Lib/cgi.py