diff options
| author | Bert JW Regeer <xistence@0x58.com> | 2018-04-04 19:40:02 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-04 19:40:02 -0600 |
| commit | 1f91bcc8dc7b7cf7caabcecb33b09feaf7f4c433 (patch) | |
| tree | a2cee7c45bab4c92760dab1a5d2223a8bf5c0d1c /src | |
| parent | 590ca7c6eb950cea3d480dc77ca68fa4c8d59c8c (diff) | |
| parent | 28e337c541f942e0591b3aadd0792c49c4957c35 (diff) | |
| download | webob-1f91bcc8dc7b7cf7caabcecb33b09feaf7f4c433.tar.gz | |
Merge pull request #352 from Cykooz/master
request.POST now supports any requests with the appropriate Content-Type (#351)
Diffstat (limited to 'src')
| -rw-r--r-- | src/webob/request.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/webob/request.py b/src/webob/request.py index 46c2de7..0a0b971 100644 --- a/src/webob/request.py +++ b/src/webob/request.py @@ -752,12 +752,10 @@ class BaseRequest(object): Return a MultiDict containing all the variables from a form request. Returns an empty dict-like object for non-form requests. - Form requests are typically POST requests, however PUT & PATCH requests - with an appropriate Content-Type are also supported. + Form requests are typically POST requests, however any other + requests with an appropriate Content-Type are also supported. """ env = self.environ - if self.method not in ('POST', 'PUT', 'PATCH'): - return NoVars('Not a form request') if 'webob._parsed_post_vars' in env: vars, body_file = env['webob._parsed_post_vars'] if body_file is self.body_file_raw: |
