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

Skip to content

Commit 3e1770f

Browse files
committed
Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
2 parents 870db90 + f66f420 commit 3e1770f

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

.hgtags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,4 @@ b4cbecbc0781e89a309d03b60a1f75f8499250e6 v3.4.3
151151
071fefbb5e3db770c6c19fba9994699f121b1cea v3.5.0b1
152152
7a088af5615bf04024e9912068f4bd8f43ed3917 v3.5.0b2
153153
0035fcd9b9243ae52c2e830204fd9c1f7d528534 v3.5.0b3
154+
c0d64105463581f85d0e368e8d6e59b7fd8f12b1 v3.5.0b4

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: 4 additions & 2 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
- Issue #13938: 2to3 converts StringTypes to a tuple. Patch from Mark Hammond.
1719

1820
- Issue #2091: open() accepted a 'U' mode string containing '+', but 'U' can
@@ -75,8 +77,8 @@ Library
7577

7678
- Issue #24620: Random.setstate() now validates the value of state last element.
7779

78-
- Issue #22485: Fixed an issue that caused `inspect.getsource` to return incorrect
79-
results on nested functions.
80+
- Issue #22485: Fixed an issue that caused `inspect.getsource` to return
81+
incorrect results on nested functions.
8082

8183
- Issue #22153: Improve unittest docs. Patch from Martin Panter and evilzero.
8284

0 commit comments

Comments
 (0)