mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fix HTTP method handler example so that method names in uppercases
can be processed. (Submitted by Jooncheol Park)
This commit is contained in:
@@ -26,7 +26,7 @@ class xmlrpc_handler:
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user