Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ddc7440

Browse files
committed
Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
1 parent 83236f7 commit ddc7440

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/wsgiref/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def check_environ(environ):
337337

338338
# @@: these need filling out:
339339
if environ['REQUEST_METHOD'] not in (
340-
'GET', 'HEAD', 'POST', 'OPTIONS','PUT','DELETE','TRACE'):
340+
'GET', 'HEAD', 'POST', 'OPTIONS', 'PATCH', 'PUT', 'DELETE', 'TRACE'):
341341
warnings.warn(
342342
"Unknown REQUEST_METHOD: %r" % environ['REQUEST_METHOD'],
343343
WSGIWarning)

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,7 @@ Bob Savage
12071207
Dave Sawyer
12081208
Ben Sayer
12091209
sbt
1210+
Luca Sbardella
12101211
Marco Scataglini
12111212
Andrew Schaaf
12121213
Michael Scharf

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ Core and Builtins
6666
Library
6767
-------
6868

69+
- Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
70+
6971
- Issue #24683: Fixed crashes in _json functions called with arguments of
7072
inappropriate type.
7173

0 commit comments

Comments
 (0)