mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 11:33: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
|
||||
if header.host then
|
||||
host = ""
|
||||
else
|
||||
host = string.format("host:%s\r\n", host)
|
||||
end
|
||||
else
|
||||
host = string.format("host:%s\r\n",host)
|
||||
|
||||
Reference in New Issue
Block a user