refactor: header flushing
This commit is contained in:
@@ -95,6 +95,9 @@ function std.header(k, v)
|
||||
end
|
||||
|
||||
function std.header_flush()
|
||||
if RESPONSE_HEADER.sent == true then
|
||||
return
|
||||
end
|
||||
-- send out status
|
||||
echo("Status: ", RESPONSE_HEADER.status, " ", http_status[RESPONSE_HEADER.status], "\r\n")
|
||||
-- send out header
|
||||
|
||||
Reference in New Issue
Block a user