summaryrefslogtreecommitdiffhomepage
path: root/libs/httpclient
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-03-02 20:18:29 +0000
committerSteven Barth <steven@midlink.org>2009-03-02 20:18:29 +0000
commita3079828b4e0c0fabd96dfca87b99a5b5d9529e5 (patch)
tree2751649f521b9ac638ca5cb3b1cb30cc747e3951 /libs/httpclient
parenteb64affa398645bee4417d9117b439c2696269da (diff)
Fix header generator
Diffstat (limited to 'libs/httpclient')
-rw-r--r--libs/httpclient/luasrc/httpclient.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/httpclient/luasrc/httpclient.lua b/libs/httpclient/luasrc/httpclient.lua
index 01ef970d1..f3318a8cc 100644
--- a/libs/httpclient/luasrc/httpclient.lua
+++ b/libs/httpclient/luasrc/httpclient.lua
@@ -164,7 +164,7 @@ function request_raw(uri, options)
local message = {(options.method or "GET") .. " " .. path .. " " .. protocol}
for k, v in pairs(headers) do
- if type(v) == "string" then
+ if type(v) == "string" or type(v) == "number" then
message[#message+1] = k .. ": " .. v
elseif type(v) == "table" then
for i, j in ipairs(v) do
@@ -322,4 +322,4 @@ function cookie_create(cookie)
end
return table.concat(cookiedata, "; ")
-end \ No newline at end of file
+end