improve headers api

This commit is contained in:
Astazium 2026-09-22 16:10:52 +03:00
parent e8d36427ba
commit 4667b801d3
7 changed files with 57 additions and 33 deletions

View file

@ -10,7 +10,7 @@ do
if request.path == "/hello" then
return {
status = 200,
headers = {"Content-Type: text/plain"},
headers = {["Content-Type"] = "text/plain"},
body = "Hello, " .. request.query
}
end