gluon-web: add CRLF to text/plain Internal Server Error output

Having a trailing newline is nice when viewing the returned data in a
terminal.
This commit is contained in:
Matthias Schiffer 2022-02-01 23:26:30 +01:00
parent 94519cfc56
commit de43b306d4

View File

@ -208,6 +208,6 @@ return function(config, http)
if not ok then if not ok then
http:status(500, "Internal Server Error") http:status(500, "Internal Server Error")
http:prepare_content("text/plain") http:prepare_content("text/plain")
http:write(err) http:write(err .. "\r\n")
end end
end end