diff options
Diffstat (limited to 'paste/fixture.py')
-rw-r--r-- | paste/fixture.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/paste/fixture.py b/paste/fixture.py index 6633cf4..d1f3a5a 100644 --- a/paste/fixture.py +++ b/paste/fixture.py @@ -226,6 +226,8 @@ class TestApp(object): content_type, params = self.encode_multipart( params, upload_files) environ['CONTENT_TYPE'] = content_type + elif params: + environ.setdefault('CONTENT_TYPE', 'application/x-www-form-urlencoded') if '?' in url: url, environ['QUERY_STRING'] = url.split('?', 1) else: |