Merge pull request #255 from flashjay/patch-1

fix: httpc.post
This commit is contained in:
云风
2015-04-03 09:35:41 +08:00

View File

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