Headers are lower cased by luasocket
This commit is contained in:
parent
1bdcf039e5
commit
843e7dedd3
@ -57,8 +57,6 @@ function get_http_file_name(url, headers)
|
||||
local file_name = url:match("([^/]+)$")
|
||||
-- Possible headers names
|
||||
local content_type = headers["content-type"]
|
||||
content_type = content_type or headers["Content-type"]
|
||||
content_type = content_type or h["Content-Type"]
|
||||
|
||||
local extension = nil
|
||||
if content_type then
|
||||
@ -383,4 +381,4 @@ function format_http_params(params, is_get)
|
||||
end
|
||||
end
|
||||
return str
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user