Skip to content

Commit 4773bb8

Browse files
committed
fix: hostNotFound handled by fileServer
1 parent 5982ab1 commit 4773bb8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/server.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,7 @@ class CoCreateLazyLoader {
7070
})
7171

7272
if (!org || !org.object || !org.object[0]) {
73-
// TODO: hostNotFound is not defined
74-
if (!hostNotFound)
75-
hostNotFound = await getDefaultFile('/hostNotFound.html')
76-
return sendResponse(hostNotFound.object[0].src, 404, { 'Content-Type': 'text/html', 'storage': organization.storage })
73+
return this.files.send(req, res, this.crud, organization, valideUrl)
7774
} else {
7875
organization = org.object[0]
7976
organizations[organization._id] = organization

0 commit comments

Comments
 (0)