Fix deno app example
All checks were successful
Test build / build (push) Successful in 7m19s
Release into production / build (release) Successful in 8s

This commit is contained in:
Adam Štrauch 2025-05-06 10:58:01 +02:00
parent c944013242
commit 383a9c2ea6
Signed by: cx
GPG key ID: 7262DAFE292BCE20
2 changed files with 7 additions and 2 deletions

View file

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

View file

@ -67,5 +67,10 @@ const bodyContent = `<!DOCTYPE html>
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",
},
});
});