From b8e93b395dca6a21641710756065d1c33b74f630 Mon Sep 17 00:00:00 2001 From: Yonle Date: Sun, 18 Feb 2024 11:47:49 +0700 Subject: [PATCH] http: favicon. Signed-off-by: Yonle --- http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.js b/http.js index b1d5597..bda2bc8 100644 --- a/http.js +++ b/http.js @@ -74,7 +74,7 @@ server.on('request', (req, res) => { res.write(`\n ${req.headers["x-forwarded-proto"]?.replace(/http/i, "ws") || (server.isStandaloneHTTPS ? "wss" : "ws")}://${req.headers.host}${req.url}?reject=10000,10002`); res.write(`\n (Will not send events with kind 10000, and 10002)`); res.end(`\n\n---\nPowered by Bostr (${version}) - Open source Nostr bouncer\nhttps://github.com/Yonle/bostr`); - } else if (req.url.startsWith("/favicon") && favicon) { + } else if (req.url.includes("favicon") && favicon) { res.writeHead(200, { "Content-Type": "image/" + config.favicon?.split(".").pop() }); res.end(favicon); } else {