Skip to content

Commit 5bb05ce

Browse files
authored
fix: don't lowercase routes when normalizing layers (#60)
1 parent cbc72c1 commit 5bb05ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function normalizeLayer (layer: InputLayer) {
136136
layer.promisify = layer.handle.length > 2 /* req, res, next */
137137
}
138138
return {
139-
route: withoutTrailingSlash(layer.route).toLocaleLowerCase(),
139+
route: withoutTrailingSlash(layer.route),
140140
match: layer.match,
141141
handle: layer.lazy
142142
? lazyHandle(layer.handle as LazyHandle, layer.promisify)

0 commit comments

Comments
 (0)