Fix deno app example
This commit is contained in:
parent
c944013242
commit
383a9c2ea6
2 changed files with 7 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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",
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue