From 082fb732e57e3ba9843d0a25c342dac9e0e47123 Mon Sep 17 00:00:00 2001 From: zixun Date: Fri, 26 Jul 2019 22:49:41 +0800 Subject: [PATCH] fix httpver --- lualib/http/websocket.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/http/websocket.lua b/lualib/http/websocket.lua index 580ac603..e148d649 100755 --- a/lualib/http/websocket.lua +++ b/lualib/http/websocket.lua @@ -82,7 +82,7 @@ local function read_handshake(self) end httpver = assert(tonumber(httpver)) - if httpver < 1.0 or httpver > 1.1 then + if httpver < 1.1 then return 505 -- HTTP Version not supported end