Browse Source

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

bel 11 years ago
parent
commit
dd17fd91fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/page_keep_alive.lua

+ 1 - 1
test/page_keep_alive.lua

@@ -14,7 +14,7 @@ else
 end
 end
 
 
 -- First send the http headers
 -- 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("Content-Type: text/html\r\n")
 mg.write("Date: " .. os.date("!%a, %d %b %Y %H:%M:%S") .. " GMT\r\n")
 mg.write("Date: " .. os.date("!%a, %d %b %Y %H:%M:%S") .. " GMT\r\n")