From a4c31ac64e40f11c5a97bb6c6f532f7ed2d60d7d Mon Sep 17 00:00:00 2001 From: Fanrncho <206867549@qq.com> Date: Mon, 7 Sep 2020 13:13:48 +0800 Subject: [PATCH] Update internal.lua (#1237) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正小错误。 --- lualib/http/internal.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lualib/http/internal.lua b/lualib/http/internal.lua index ec45ff50..8c26519a 100644 --- a/lualib/http/internal.lua +++ b/lualib/http/internal.lua @@ -1,5 +1,6 @@ local table = table local type = type +local sockethelper = require "http.sockethelper" local M = {} @@ -170,7 +171,7 @@ function M.request(interface, method, host, url, recvheader, header, content) local tmpline = {} local body = M.recvheader(read, tmpline, "") if not body then - error(socket.socket_error) + error(sockethelper.socket_error) end local statusline = tmpline[1]