mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Fix HTTP method handler example so that method names in uppercases
can be processed. (Submitted by Jooncheol Park)
This commit is contained in:
parent
3033734081
commit
f2dbeff60b
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ def match (self, request):
|
|||
def handle_request (self, request):
|
||||
[path, params, query, fragment] = request.split_uri()
|
||||
|
||||
if request.command in ('post', 'put'):
|
||||
if request.command.lower() in ('post', 'put'):
|
||||
request.collector = collector (self, request)
|
||||
else:
|
||||
request.error (400)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue