Remove obsolete log

This commit is contained in:
Pieter Vander Vennet 2024-04-30 17:36:01 +02:00
parent 625f179a91
commit dff3827144
2 changed files with 1 additions and 2 deletions

View file

@ -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)

View file

@ -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) {