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("([^/]+)$")
|
local file_name = url:match("([^/]+)$")
|
||||||
-- Possible headers names
|
-- Possible headers names
|
||||||
local content_type = headers["content-type"]
|
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
|
local extension = nil
|
||||||
if content_type then
|
if content_type then
|
||||||
|
Reference in New Issue
Block a user