From 304ce583c7f2ba53bdef1438368519aba5fef79d Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 17 Jun 2008 16:23:42 +0000 Subject: * Use CRLF instead of LF in HTTP headers --- libs/httpd/luasrc/httpd/module.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/httpd/luasrc') diff --git a/libs/httpd/luasrc/httpd/module.lua b/libs/httpd/luasrc/httpd/module.lua index bb22798fe3..4bf697744b 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 -- cgit v1.2.3