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

Skip to content

Commit f66f420

Browse files
committed
Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
2 parents 71427ee + ddc7440 commit f66f420

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
@@ -1242,6 +1242,7 @@ Bob Savage
12421242
Dave Sawyer
12431243
Ben Sayer
12441244
sbt
1245+
Luca Sbardella
12451246
Marco Scataglini
12461247
Andrew Schaaf
12471248
Michael Scharf

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Core and Builtins
1313
Library
1414
-------
1515

16+
- Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
17+
1618

1719
What's New in Python 3.5.0 beta 4?
1820
==================================

0 commit comments

Comments
 (0)