diff options
| author | ianb <devnull@localhost> | 2006-11-26 17:18:57 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2006-11-26 17:18:57 +0000 |
| commit | 5db5ea85e5f6748a2d75ab65ca48d3537a0eb025 (patch) | |
| tree | 6999b404d7af89ed8aef744b44e3a8512583dddb | |
| parent | 91541f9194baf695ba94a9117537186f074951e3 (diff) | |
| download | paste-5db5ea85e5f6748a2d75ab65ca48d3537a0eb025.tar.gz | |
Fix last commit (CONTENT_TYPE), news
| -rw-r--r-- | docs/news.txt | 4 | ||||
| -rw-r--r-- | paste/request.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/docs/news.txt b/docs/news.txt index 85951ba..a11fc54 100644 --- a/docs/news.txt +++ b/docs/news.txt @@ -29,6 +29,10 @@ svn trunk that breaks ``Set-Cookie`` headers (two ``Set-Cookie`` headers would be merged into one). +* ``paste.request.parse_formvars`` didn't accept parameters in + ``CONTENT_TYPE``. ``prototype.js`` sets a ``charset`` parameter, + which caused a problem. + 1.0 --- diff --git a/paste/request.py b/paste/request.py index 63941cc..06612e0 100644 --- a/paste/request.py +++ b/paste/request.py @@ -149,7 +149,7 @@ def parse_formvars(environ, include_get_vars=True): # fake_out_cgi requests type = environ.get('CONTENT_TYPE', '').lower() if ';' in type: - type = type.split(';', 1) + type = type.split(';', 1)[0] fake_out_cgi = (type not in ('', 'application/x-www-form-urlencoded') and not type.startswith('multipart/form-data')) # Prevent FieldStorage from parsing QUERY_STRING during GET/HEAD |
