From: Steven Barth Date: Tue, 17 Jun 2008 16:23:42 +0000 (+0000) Subject: * Use CRLF instead of LF in HTTP headers X-Git-Tag: 0.8.0~796 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=304ce583c7f2ba53bdef1438368519aba5fef79d;p=project%2Fluci.git * Use CRLF instead of LF in HTTP headers --- 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