summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2005-04-12 02:49:52 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2005-04-12 02:49:52 (GMT)
commitf2dbeff60ba98805306f41848594d58ebde5e00a (patch)
tree53dce3eb0ae9a34eeddcb0926fdb2b240c86cb9f
parent3033734081a237505ed8bd6e470b658aecf9678b (diff)
downloadcpython-f2dbeff60ba98805306f41848594d58ebde5e00a.zip
cpython-f2dbeff60ba98805306f41848594d58ebde5e00a.tar.gz
cpython-f2dbeff60ba98805306f41848594d58ebde5e00a.tar.bz2
Fix HTTP method handler example so that method names in uppercases
can be processed. (Submitted by Jooncheol Park)
-rw-r--r--Demo/xmlrpc/xmlrpc_handler.py2
1 files changed, 1 insertions, 1 deletions
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)