summaryrefslogtreecommitdiffhomepage
path: root/libs/httpd/luasrc
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-25 16:50:55 +0000
committerSteven Barth <steven@midlink.org>2008-06-25 16:50:55 +0000
commit5d9394a3d661dad26ca9d1cec043ec7d70278b27 (patch)
tree49b6c436b6fc0cc6ddf141fcee91c5d11faeb77f /libs/httpd/luasrc
parent215e225fe9965be0852f4f4f2f72dca1d0c608f0 (diff)
* libs/httpd: Use HTTP/1.0 for error messages
Diffstat (limited to 'libs/httpd/luasrc')
-rw-r--r--libs/httpd/luasrc/httpd/server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/httpd/luasrc/httpd/server.lua b/libs/httpd/luasrc/httpd/server.lua
index 181ca24a1..1b54b30f2 100644
--- 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" )