projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb64aff
)
Fix header generator
author
Steven Barth
<steven@midlink.org>
Mon, 2 Mar 2009 20:18:29 +0000
(20:18 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 2 Mar 2009 20:18:29 +0000
(20:18 +0000)
libs/httpclient/luasrc/httpclient.lua
patch
|
blob
|
history
diff --git
a/libs/httpclient/luasrc/httpclient.lua
b/libs/httpclient/luasrc/httpclient.lua
index 01ef970d174a21ace0a6e0e2d5d03ea31ea0c0cf..f3318a8ccc3c46aa6ff688b9b671af1e8d12369a 100644
(file)
--- 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