summaryrefslogtreecommitdiffstats
path: root/Lib/wsgiref
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-07-26 22:42:01 (GMT)
committerRobert Collins <rbtcollins@hp.com>2015-07-26 22:42:01 (GMT)
commitddc7440b0e9fe53e0dfdc4b11db1a61deb694267 (patch)
treebf144617f19301e4e15e881f1e7d4ab7ea238aa4 /Lib/wsgiref
parent83236f7a8b638454ea74743e1103faa0545e9a62 (diff)
downloadcpython-ddc7440b0e9fe53e0dfdc4b11db1a61deb694267.zip
cpython-ddc7440b0e9fe53e0dfdc4b11db1a61deb694267.tar.gz
cpython-ddc7440b0e9fe53e0dfdc4b11db1a61deb694267.tar.bz2
Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
Diffstat (limited to 'Lib/wsgiref')
-rw-r--r--Lib/wsgiref/validate.py2
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)