Cleanup apigateway callback.

This commit is contained in:
Steve Pulec 2017-02-18 09:19:08 -05:00
parent cad185c74d
commit d28f083a0b

View File

@ -316,9 +316,8 @@ class RestAPI(object):
return resource
# TODO deal with no matching resource
def resource_callback(self, request, full_url=None, headers=None):
if not headers:
headers = request.headers
def resource_callback(self, request):
headers = request.headers
path = request.path if hasattr(request, 'path') else request.path_url
path_after_stage_name = '/'.join(path.split("/")[2:])