From a3079828b4e0c0fabd96dfca87b99a5b5d9529e5 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 2 Mar 2009 20:18:29 +0000 Subject: Fix header generator --- libs/httpclient/luasrc/httpclient.lua | 4 ++-- 1 file 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 -- cgit v1.2.3