diff --git a/lualib/http/httpc.lua b/lualib/http/httpc.lua index 823d33b5..a8b7d6f8 100644 --- a/lualib/http/httpc.lua +++ b/lualib/http/httpc.lua @@ -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)