Changeset 6624
- Timestamp:
- 12/05/10 19:22:30 (2 years ago)
- Files:
-
- 1 modified
-
luci/trunk/libs/httpclient/luasrc/httpclient.lua (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/libs/httpclient/luasrc/httpclient.lua
r5607 r6624 195 195 local cpa = c.flags.path 196 196 if (cdo == host or cdo == "."..host or host:sub(-#cdo) == cdo) 197 and (cpa == "/" or cpa .. "/" == path:sub(#cpa+1))197 and (cpa == path or cpa == "/" or cpa .. "/" == path:sub(#cpa+1)) 198 198 and (not c.flags.secure or pr == "https") 199 199 then … … 243 243 local key, val = line:match("^([%w-]+)%s?:%s?(.*)") 244 244 if key and key ~= "Status" then 245 if type(response [key]) == "string" then245 if type(response.headers[key]) == "string" then 246 246 response.headers[key] = {response.headers[key], val} 247 elseif type(response [key]) == "table" then247 elseif type(response.headers[key]) == "table" then 248 248 response.headers[key][#response.headers[key]+1] = val 249 249 else
