2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 18:49:04 +00:00

Fix problem where operation lookup as for naught

This commit is contained in:
Jarrod Johnson 2013-11-02 19:01:53 -04:00
parent 4ee20bafc7
commit 9765d2c2bb

View File

@ -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"