Skip to content

Commit 592c378

Browse files
committed
Improve comment on globbing hack
1 parent e71d5c3 commit 592c378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/handlers/get.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ async function handler (req, res, next) {
135135

136136
async function globHandler (req, res, next) {
137137
const ldp = req.app.locals.ldp
138-
// TODO: This is a hack, as globbing and resource mapping in combination is complex
139-
// TODO: Proper support for this is not implemented, as globbing support will probably be removed in the future.
138+
// TODO: This is a hack, that does not check if the target file exists, as this is quite complex with globbing.
139+
// TODO: Proper support for this is not implemented, as globbing support might be removed in the future.
140140
const filename = ldp.resourceMapper._getFullPath(req)
141141
const requestUri = (await ldp.resourceMapper.mapFileToUrl({ path: filename, hostname: req.hostname })).url
142142

0 commit comments

Comments
 (0)