From f2a0bfdceae13e6fb036e1309f510381184827ae Mon Sep 17 00:00:00 2001 From: Holly Date: Mon, 27 Jan 2025 10:01:19 +0000 Subject: [PATCH] rename IMAGE request type to MEDIA to be consistent --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 1dad053..614e2be 100644 --- a/index.ts +++ b/index.ts @@ -87,7 +87,7 @@ fastify.addHook("preHandler", (req, res, done) => { if (media) { // @ts-ignore - req.logType = cyan("IMAGE"); + req.logType = cyan("MEDIA"); const fileStore = HashFS.GetHashFSInstance("images"); const readStream = createReadStream(join(fileStore.path, fileStore.GetRelativePath(media.Hash))); res.raw.writeHead(200, HeaderUtility.CombineHeaders({