Skip to content

Commit 96cac9b

Browse files
authored
Merge pull request #50 from FallenDeity/feat/case-insensitive-query
feat: Convert path to lowercase, when accessing static files
2 parents b7ecd4f + 6cbbed2 commit 96cac9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions_v1/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (process.env.FIREBASE_DEBUG_MODE) {
1414
}
1515

1616
function targetUrlForPath(path) {
17-
let target = BASE_URL + "/_gen" + path
17+
let target = BASE_URL + "/_gen" + path.toLowerCase()
1818
if (!target.endsWith("/")) {
1919
target += "/"
2020
}
@@ -32,7 +32,7 @@ function getPageUrl(path, params) {
3232
if (params === null) {
3333
return null
3434
}
35-
return BASE_URL + path + "?offset=" + params.offset + "&limit=" + params.limit
35+
return BASE_URL + path.toLowerCase() + "?offset=" + params.offset + "&limit=" + params.limit
3636
}
3737

3838
function getPreviousPage(params) {

0 commit comments

Comments
 (0)