mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
This commit is contained in:
parent
83236f7a8b
commit
ddc7440b0e
3 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue