ladici: HTTP-serve a plain/html instead of plain/text

This commit is contained in:
Nedko Arnaudov 2023-12-01 20:02:29 +02:00
parent 55b6edd283
commit a3cab9a282
1 changed files with 10 additions and 2 deletions

12
ladici
View File

@ -49,10 +49,18 @@ local router = function(request)
response.headers = {}
response.headers["Server"] = "ladici"
response.headers["Connection"] = "close"
response.headers["Content-Type"] = "text/plain"
response.body = "LADI Continuous Integration\
response.headers["Content-Type"] = "text/html"
response.body = "<!DOCTYPE html>\
<head>\
<title>LADI Continuous Integration</title>\
</head>\
<body>\
LADI Continuous Integration\
<br>\
WIP\
<br>\
yeah!\
</body>\
"
return response
end