diff --git a/scripts/server.ts b/scripts/server.ts index 0b7d40af7..3af794b93 100644 --- a/scripts/server.ts +++ b/scripts/server.ts @@ -109,7 +109,7 @@ export class Server { } const extraHeaders = handler.addHeaders ?? {} res.writeHead(200, { "Content-Type": handler.mimetype, ...extraHeaders }) - res.write(result) + res.write(""+result) res.end() } catch (e) { console.error("Could not handle request:", e) diff --git a/scripts/serverLdScrape.ts b/scripts/serverLdScrape.ts index 094b3d271..41f3d9d96 100644 --- a/scripts/serverLdScrape.ts +++ b/scripts/serverLdScrape.ts @@ -71,7 +71,6 @@ class ServerLdScrape extends Script { console.log("URL", url) if (cache[url] !== undefined) { const { date, contents } = cache[url] - console.log(">>>", date, contents) // In seconds const tdiff = (new Date().getTime() - (date?.getTime() ?? 0)) / 1000 if (tdiff < 31 * 24 * 60 * 60) {