mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
fix: httpc.post
调用httpc.post时,如果没有在header里面设置host时有问题
This commit is contained in:
@@ -16,6 +16,8 @@ local function request(fd, method, host, url, recvheader, header, content)
|
|||||||
end
|
end
|
||||||
if header.host then
|
if header.host then
|
||||||
host = ""
|
host = ""
|
||||||
|
else
|
||||||
|
host = string.format("host:%s\r\n", host)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
host = string.format("host:%s\r\n",host)
|
host = string.format("host:%s\r\n",host)
|
||||||
|
|||||||
Reference in New Issue
Block a user