From d28f083a0baeb8500eb50e15a84e75e724c65071 Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Sat, 18 Feb 2017 09:19:08 -0500 Subject: [PATCH] Cleanup apigateway callback. --- moto/apigateway/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/moto/apigateway/models.py b/moto/apigateway/models.py index bab0bc1d0..6ce831186 100644 --- a/moto/apigateway/models.py +++ b/moto/apigateway/models.py @@ -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:])