From 24b0476b5982d199834c9f257c33115e8000e947 Mon Sep 17 00:00:00 2001 From: Jeremy Walton Date: Tue, 31 Mar 2020 01:58:12 -0400 Subject: [PATCH] Fix for noPrependStageInUrl affecting event.path --- src/events/http/HttpServer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/http/HttpServer.js b/src/events/http/HttpServer.js index becf39284..636b64224 100644 --- a/src/events/http/HttpServer.js +++ b/src/events/http/HttpServer.js @@ -347,7 +347,7 @@ export default class HttpServer { } const requestPath = request.path.substr( - this.#options.noPrependStageInUrl ? 1 : `/${stage}`.length, + this.#options.noPrependStageInUrl ? 0 : `/${stage}`.length, ) if (request.auth.credentials && request.auth.strategy) {