summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-07-26 22:46:42 (GMT)
committerRobert Collins <rbtcollins@hp.com>2015-07-26 22:46:42 (GMT)
commit3e1770f5f3053604b7c10afbf9e35014409a419b (patch)
treec7bd38f75e812ddac3cc12f14132386d6eb64364 /Lib
parent870db9025f79ea47b1f93260b8714bc25fa7cc47 (diff)
parentf66f4208b79974b348b76b90c0117b26e4dbfd21 (diff)
downloadcpython-3e1770f5f3053604b7c10afbf9e35014409a419b.zip
cpython-3e1770f5f3053604b7c10afbf9e35014409a419b.tar.gz
cpython-3e1770f5f3053604b7c10afbf9e35014409a419b.tar.bz2
Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
Diffstat (limited to 'Lib')
-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)