mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
improve headers api
This commit is contained in:
parent
e8d36427ba
commit
4667b801d3
7 changed files with 57 additions and 33 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue