From 843e7dedd3b656e3d6d59dc99a42c483a3c83541 Mon Sep 17 00:00:00 2001 From: Yago Date: Fri, 10 Apr 2015 12:30:57 +0200 Subject: [PATCH] Headers are lower cased by luasocket --- bot/utils.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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