From 1ce2d8679787212714f1cb4d1ccdcb5c0e99ddbe Mon Sep 17 00:00:00 2001 From: CandyMi <869646063@qq.com> Date: Thu, 4 Apr 2019 17:37:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AAws=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=BE=93=E5=87=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lualib/protocol/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/protocol/http.lua b/lualib/protocol/http.lua index d9a2e6d2..1e1de389 100644 --- a/lualib/protocol/http.lua +++ b/lualib/protocol/http.lua @@ -414,7 +414,7 @@ local function Switch_Protocol(http, cls, sock, header, method, version, path, i if protocol then -- 仅支持协议回传, 具体实现由用户实现 insert(response, "Sec-Websocket-Protocol: "..tostring(protocol)) end - http:tolog(200, PATH, header['X-Real-IP'] or ip, X_Forwarded_FORMAT(header['X-Forwarded-For'] or ip), method, now() - start_time) + http:tolog(200, path, header['X-Real-IP'] or ip, X_Forwarded_FORMAT(header['X-Forwarded-For'] or ip), method, now() - start_time) local ok = sock:send(concat(response, CRLF)..CRLF2) if not ok then return sock:close()