mirror of https://github.com/python/cpython
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
|
@ -26,7 +26,7 @@ class xmlrpc_handler:
|
||||||
def handle_request (self, request):
|
def handle_request (self, request):
|
||||||
[path, params, query, fragment] = request.split_uri()
|
[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)
|
request.collector = collector (self, request)
|
||||||
else:
|
else:
|
||||||
request.error (400)
|
request.error (400)
|
||||||
|
|
Loading…
Reference in New Issue