Update internal.lua (#1237)

修正小错误。
This commit is contained in:
Fanrncho
2020-09-07 13:13:48 +08:00
committed by GitHub
parent 280f0251da
commit a4c31ac64e

View File

@@ -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]