Headers are lower cased by luasocket

This commit is contained in:
Yago 2015-04-10 12:30:57 +02:00
parent 1bdcf039e5
commit 843e7dedd3

View File

@ -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