summaryrefslogtreecommitdiffhomepage
path: root/libs/httpd
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-17 16:23:42 +0000
committerSteven Barth <steven@midlink.org>2008-06-17 16:23:42 +0000
commit304ce583c7f2ba53bdef1438368519aba5fef79d (patch)
tree1974397cfc1585c42c651c9f73dfb71fc283839e /libs/httpd
parent71beb64a228c1581306c22eef4b59c9594c586ae (diff)
* Use CRLF instead of LF in HTTP headers
Diffstat (limited to 'libs/httpd')
-rw-r--r--libs/httpd/luasrc/httpd/module.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/httpd/luasrc/httpd/module.lua b/libs/httpd/luasrc/httpd/module.lua
index bb22798fe..4bf697744 100644
--- a/libs/httpd/luasrc/httpd/module.lua
+++ b/libs/httpd/luasrc/httpd/module.lua
@@ -92,13 +92,13 @@ function Handler.process(self, request, sourcein, sinkout, sinkerr)
-- Print status and headers
- sinkout("HTTP/1.1 " .. response.status .. " " .. statusmsg[response.status] .. "\n")
+ sinkout("HTTP/1.1 " .. response.status .. " " .. statusmsg[response.status] .. "\r\n")
for k, v in pairs(response.headers) do
- sinkout(k .. ": " .. v .. "\n")
+ sinkout(k .. ": " .. v .. "\r\n")
end
-- End of Headers
- sinkout("\n")
+ sinkout("\r\n")
-- Pump content
if sourceout then