diff options
author | Robert Collins <rbtcollins@hp.com> | 2015-07-26 22:42:54 (GMT) |
---|---|---|
committer | Robert Collins <rbtcollins@hp.com> | 2015-07-26 22:42:54 (GMT) |
commit | f66f4208b79974b348b76b90c0117b26e4dbfd21 (patch) | |
tree | cde6032bf03168a42c73aca496f4d1353c76fe8f /Lib | |
parent | 71427eea74e4d8c5312da94b24dfaefaebe60e82 (diff) | |
parent | ddc7440b0e9fe53e0dfdc4b11db1a61deb694267 (diff) | |
download | cpython-f66f4208b79974b348b76b90c0117b26e4dbfd21.zip cpython-f66f4208b79974b348b76b90c0117b26e4dbfd21.tar.gz cpython-f66f4208b79974b348b76b90c0117b26e4dbfd21.tar.bz2 |
Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/wsgiref/validate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/wsgiref/validate.py b/Lib/wsgiref/validate.py index 49eaa51..6107dcd 100644 --- a/Lib/wsgiref/validate.py +++ b/Lib/wsgiref/validate.py @@ -337,7 +337,7 @@ def check_environ(environ): # @@: these need filling out: if environ['REQUEST_METHOD'] not in ( - 'GET', 'HEAD', 'POST', 'OPTIONS','PUT','DELETE','TRACE'): + 'GET', 'HEAD', 'POST', 'OPTIONS', 'PATCH', 'PUT', 'DELETE', 'TRACE'): warnings.warn( "Unknown REQUEST_METHOD: %r" % environ['REQUEST_METHOD'], WSGIWarning) |