projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71beb64
)
* Use CRLF instead of LF in HTTP headers
author
Steven Barth
<steven@midlink.org>
Tue, 17 Jun 2008 16:23:42 +0000
(16:23 +0000)
committer
Steven Barth
<steven@midlink.org>
Tue, 17 Jun 2008 16:23:42 +0000
(16:23 +0000)
libs/httpd/luasrc/httpd/module.lua
patch
|
blob
|
history
diff --git
a/libs/httpd/luasrc/httpd/module.lua
b/libs/httpd/luasrc/httpd/module.lua
index bb22798fe337b7848a6085b2dbd6ccb4bfb7c155..4bf697744b54bd42417acaaddf2b7a58b03820e7 100644
(file)
--- 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