mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user