From f2dbeff60ba98805306f41848594d58ebde5e00a Mon Sep 17 00:00:00 2001 From: Hye-Shik Chang Date: Tue, 12 Apr 2005 02:49:52 +0000 Subject: Fix HTTP method handler example so that method names in uppercases can be processed. (Submitted by Jooncheol Park) --- Demo/xmlrpc/xmlrpc_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/xmlrpc/xmlrpc_handler.py b/Demo/xmlrpc/xmlrpc_handler.py index 1935475..359d6f1 100644 --- a/Demo/xmlrpc/xmlrpc_handler.py +++ b/Demo/xmlrpc/xmlrpc_handler.py @@ -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) -- cgit v0.12