diff --git a/bot/utils.lua b/bot/utils.lua index 8fb397e..0cda8b2 100644 --- a/bot/utils.lua +++ b/bot/utils.lua @@ -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 \ No newline at end of file +end