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:
215e225
)
* libs/httpd: Use HTTP/1.0 for error messages
author
Steven Barth
<steven@midlink.org>
Wed, 25 Jun 2008 16:50:55 +0000
(16:50 +0000)
committer
Steven Barth
<steven@midlink.org>
Wed, 25 Jun 2008 16:50:55 +0000
(16:50 +0000)
libs/httpd/luasrc/httpd/server.lua
patch
|
blob
|
history
diff --git
a/libs/httpd/luasrc/httpd/server.lua
b/libs/httpd/luasrc/httpd/server.lua
index 181ca24a196bd5a5acf76c2cbfea432a1c007d5e..1b54b30f214f759898b5294711fedd253350648b 100644
(file)
--- a/
libs/httpd/luasrc/httpd/server.lua
+++ b/
libs/httpd/luasrc/httpd/server.lua
@@
-90,7
+90,7
@@
end
function Server.error(self, socket, code, msg)
hcode = tostring(code)
- socket:send( "HTTP/1.
1
" .. hcode .. " " ..
+ socket:send( "HTTP/1.
0
" .. hcode .. " " ..
luci.http.protocol.statusmsg[code] .. "\r\n" )
socket:send( "Connection: close\r\n" )
socket:send( "Content-Type: text/plain\r\n\r\n" )