[Python-checkins] cpython (2.7): Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.

robert.collins python-checkins at python.org
Mon Jul 27 00:47:34 CEST 2015


https://hg.python.org/cpython/rev/5919531c0b03
changeset:   97079:5919531c0b03
branch:      2.7
parent:      97072:0a1266ef1b5d
user:        Robert Collins <rbtcollins at hp.com>
date:        Mon Jul 27 10:40:15 2015 +1200
summary:
  Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.

files:
  Lib/wsgiref/validate.py |  2 +-
  Misc/ACKS               |  1 +
  Misc/NEWS               |  2 ++
  3 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Lib/wsgiref/validate.py b/Lib/wsgiref/validate.py
--- a/Lib/wsgiref/validate.py
+++ b/Lib/wsgiref/validate.py
@@ -329,7 +329,7 @@
 
     # @@: 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)
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1197,6 +1197,7 @@
 Bob Savage
 Ben Sayer
 sbt
+Luca Sbardella
 Marco Scataglini
 Andrew Schaaf
 Michael Scharf
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -34,6 +34,8 @@
 Library
 -------
 
+- Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
+
 - Issue #24613: Calling array.fromstring() with self is no longer allowed
   to prevent the use-after-free error.  Patch by John Leitch.
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list