From 18c5d2a23c07fbb7d61146c5eb0d92e8cf72cf17 Mon Sep 17 00:00:00 2001 From: "Ean Milligan (Bastion)" Date: Fri, 8 Jul 2022 01:31:13 -0400 Subject: [PATCH] update heatmap.png --- src/endpoints/gets/heatmapPng.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/endpoints/gets/heatmapPng.ts b/src/endpoints/gets/heatmapPng.ts index d509c8a..7a94672 100644 --- a/src/endpoints/gets/heatmapPng.ts +++ b/src/endpoints/gets/heatmapPng.ts @@ -6,11 +6,14 @@ import { export const heatmapPng = async (requestEvent: Deno.RequestEvent) => { const file = Deno.readFileSync('./src/endpoints/gets/heatmap.png'); + const imageHeaders = new Headers(); + imageHeaders.append('Content-Type', 'image/png'); // Send basic OK to indicate key has been sent requestEvent.respondWith( new Response(file, { status: Status.OK, statusText: STATUS_TEXT[Status.OK], + headers: imageHeaders, }), ); };