diff options
author | Hye-Shik Chang <hyeshik@gmail.com> | 2005-04-12 02:49:52 (GMT) |
---|---|---|
committer | Hye-Shik Chang <hyeshik@gmail.com> | 2005-04-12 02:49:52 (GMT) |
commit | f2dbeff60ba98805306f41848594d58ebde5e00a (patch) | |
tree | 53dce3eb0ae9a34eeddcb0926fdb2b240c86cb9f /Demo | |
parent | 3033734081a237505ed8bd6e470b658aecf9678b (diff) | |
download | cpython-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)
Diffstat (limited to 'Demo')
-rw-r--r-- | Demo/xmlrpc/xmlrpc_handler.py | 2 |
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) |