diff options
author | pjenvey <devnull@localhost> | 2007-01-17 23:39:31 +0000 |
---|---|---|
committer | pjenvey <devnull@localhost> | 2007-01-17 23:39:31 +0000 |
commit | e76b1fd619965ac9b550c05914dd2c9f03c75af7 (patch) | |
tree | 61157ba51232d3086af7a1494aaa66a678b8aa03 /paste/request.py | |
parent | 58f2bacef94d38dd9296d55a6bd367b46be05b57 (diff) | |
download | paste-e76b1fd619965ac9b550c05914dd2c9f03c75af7.tar.gz |
no need to check content type for startswith('multipart/form-data') as of r5936/r5937
Diffstat (limited to 'paste/request.py')
-rw-r--r-- | paste/request.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/request.py b/paste/request.py index 0b49e54..a83b4db 100644 --- a/paste/request.py +++ b/paste/request.py @@ -151,8 +151,8 @@ def parse_formvars(environ, include_get_vars=True): type = environ.get('CONTENT_TYPE', '').lower() if ';' in type: type = type.split(';', 1)[0] - fake_out_cgi = (type not in ('', 'application/x-www-form-urlencoded') - and not type.startswith('multipart/form-data')) + fake_out_cgi = type not in ('', 'application/x-www-form-urlencoded', + 'multipart/form-data') # FieldStorage assumes a default CONTENT_LENGTH of -1, but a # default of 0 is better: if not environ.get('CONTENT_LENGTH'): |