From 383a9c2ea60fddd2e91b86657f65dd8d8aed531c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Tue, 6 May 2025 10:58:01 +0200 Subject: [PATCH] Fix deno app example --- Taskfile.yml | 2 +- examples/deno/app.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 4e8891e..92768ea 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -5,7 +5,7 @@ version: '3' vars: REPO: harbor.hq.rosti.cz REPO_PUBLIC: rosti/runtime - VERSION: 2025.04-1 + VERSION: 2025.05-1 BASEIMAGE: debian:bookworm tasks: diff --git a/examples/deno/app.js b/examples/deno/app.js index 398e683..c662d73 100644 --- a/examples/deno/app.js +++ b/examples/deno/app.js @@ -67,5 +67,10 @@ const bodyContent = ` console.log(`HTTP webserver running. Access it at: http://localhost:8080/`); Deno.serve({ port: 8080 }, (_req) => { - return new Response(bodyContent); + return new Response(bodyContent, { + status: 200, + headers: { + "content-type": "text/html; charset=utf-8", + }, + }); });