From d8ecdc582f5d21dd5b0e3784929d35ec3ed6debe Mon Sep 17 00:00:00 2001 From: Jason Feng Date: Fri, 24 Apr 2020 00:05:49 +1000 Subject: [PATCH] Fixed the path and resourcePath in http event lambda proxy --- src/events/http/lambda-events/LambdaProxyIntegrationEvent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/http/lambda-events/LambdaProxyIntegrationEvent.js b/src/events/http/lambda-events/LambdaProxyIntegrationEvent.js index e57c4767c..f65056cbd 100644 --- a/src/events/http/lambda-events/LambdaProxyIntegrationEvent.js +++ b/src/events/http/lambda-events/LambdaProxyIntegrationEvent.js @@ -175,13 +175,13 @@ export default class LambdaProxyIntegrationEvent { userAgent: _headers['user-agent'] || '', userArn: 'offlineContext_userArn', }, - path: route.path, + path: this.#path, protocol: 'HTTP/1.1', requestId: createUniqueId(), requestTime, requestTimeEpoch, resourceId: 'offlineContext_resourceId', - resourcePath: this.#path, + resourcePath: route.path, stage: this.#stage, }, resource: this.#path,