소스 검색

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")