Skip to content

Commit

Permalink
Fix for noPrependStageInUrl affecting event.path
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Walton committed Mar 31, 2020
1 parent e97ecd3 commit 24b0476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/http/HttpServer.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 24b0476

Please sign in to comment.