diff options
| author | bwarsaw | 1999-01-08 06:04:22 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-01-08 06:04:22 +0000 |
| commit | a34762ab857cc7e2fd37ac84ca5ccf58b2cfcbe6 (patch) | |
| tree | 3bf72d161e6610085b2a1ec0b350a6530b9f777e /Mailman/pythonlib/tempfile.py | |
| parent | 52ee9e7e8c15e50a5be19b1a7fa0247270e0d516 (diff) | |
| download | mailman-a34762ab857cc7e2fd37ac84ca5ccf58b2cfcbe6.tar.gz mailman-a34762ab857cc7e2fd37ac84ca5ccf58b2cfcbe6.tar.zst mailman-a34762ab857cc7e2fd37ac84ca5ccf58b2cfcbe6.zip | |
Changes to workaround some bogus clients which either don't include a
content-type header, or include a bogus one.
cgi.py
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, default to text/plain for inner parts, but
application/x-www-form-urlencoded for outer parts.
This patch will be proposed for Python 1.5.2
driver
run_main(): Play some games to get Mailman's special cgi.py
module. We import it from Mailman.pythonlib.cgi, but then we jam
this module into sys.modules['cgi'] so all those imports in all
those Mailman.Cgi scripts get our special one (without having to
hack all those scripts!)
Diffstat (limited to 'Mailman/pythonlib/tempfile.py')
0 files changed, 0 insertions, 0 deletions
