Fix HTTP method handler example so that method names in uppercases

can be processed.  (Submitted by Jooncheol Park)
This commit is contained in:
Hye-Shik Chang 2005-04-12 02:49:52 +00:00
parent 3033734081
commit f2dbeff60b
1 changed files with 1 additions and 1 deletions

View File

@ -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)