mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
@@ -1,5 +1,6 @@
|
|||||||
local table = table
|
local table = table
|
||||||
local type = type
|
local type = type
|
||||||
|
local sockethelper = require "http.sockethelper"
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
@@ -170,7 +171,7 @@ function M.request(interface, method, host, url, recvheader, header, content)
|
|||||||
local tmpline = {}
|
local tmpline = {}
|
||||||
local body = M.recvheader(read, tmpline, "")
|
local body = M.recvheader(read, tmpline, "")
|
||||||
if not body then
|
if not body then
|
||||||
error(socket.socket_error)
|
error(sockethelper.socket_error)
|
||||||
end
|
end
|
||||||
|
|
||||||
local statusline = tmpline[1]
|
local statusline = tmpline[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user