Skip to content

Commit

Permalink
fix: don't lowercase routes when normalizing layers (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 18, 2022
1 parent cbc72c1 commit 5bb05ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function normalizeLayer (layer: InputLayer) {
layer.promisify = layer.handle.length > 2 /* req, res, next */
}
return {
route: withoutTrailingSlash(layer.route).toLocaleLowerCase(),
route: withoutTrailingSlash(layer.route),
match: layer.match,
handle: layer.lazy
? lazyHandle(layer.handle as LazyHandle, layer.promisify)
Expand Down

0 comments on commit 5bb05ce

Please sign in to comment.