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

View file

@ -26,7 +26,7 @@ def match (self, request):
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)