浏览代码

Lua script http keep-alive test 1: Set content length

bel 11 年之前
父节点
当前提交
dd17fd91fb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/page_keep_alive.lua

+ 1 - 1
test/page_keep_alive.lua

@@ -14,7 +14,7 @@ else
 end
 
 -- First send the http headers
-mg.write("HTTP/1.0 200 OK\r\n")
+mg.write("HTTP/1.1 200 OK\r\n")
 mg.write("Content-Type: text/html\r\n")
 mg.write("Date: " .. os.date("!%a, %d %b %Y %H:%M:%S") .. " GMT\r\n")