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, }), ); };