commit | 302331a3b6544c28a7c4d420fab18f397c844e80 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Fri Jan 08 17:42:03 1999 +0000 |
committer | Barry Warsaw <barry@python.org> | Fri Jan 08 17:42:03 1999 +0000 |
tree | 1b0d5f8c71adfb6312861af8156c3461840dbfc7 | |
parent | b33f612f3323f26cad6b43211d8e59e7e84f3604 [diff] |
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.