From 9765d2c2bbc050a363c7b9610cf27a918518cf4b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Sat, 2 Nov 2013 19:01:53 -0400 Subject: [PATCH] Fix problem where operation lookup as for naught --- confluent/httpapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent/httpapi.py b/confluent/httpapi.py index c9e02381..ca590949 100644 --- a/confluent/httpapi.py +++ b/confluent/httpapi.py @@ -203,7 +203,7 @@ def resourcehandler(env, start_response): operation = opmap[env['REQUEST_METHOD']] resource = '.' + env['PATH_INFO'][env['PATH_INFO'].rindex('/'):] try: - hdlr = pluginapi.handle_path(env['PATH_INFO'], 'retrieve', cfgmgr) + hdlr = pluginapi.handle_path(env['PATH_INFO'], operation, cfgmgr) except exc.NotFoundException: start_response('404 Not found', headers) yield "404 - Request path not recognized"