Fix HTTP für Media
This commit is contained in:
parent
22dc1916de
commit
6757c57565
@ -3,7 +3,7 @@ local bot = {}
|
|||||||
bindings = require('otouto.bindings')
|
bindings = require('otouto.bindings')
|
||||||
utilities = require('otouto.utilities')
|
utilities = require('otouto.utilities')
|
||||||
|
|
||||||
bot.version = '2.2.4.0'
|
bot.version = '2.2.4.1'
|
||||||
|
|
||||||
function bot:init(config) -- The function run when the bot is started or reloaded.
|
function bot:init(config) -- The function run when the bot is started or reloaded.
|
||||||
cred_data = load_cred()
|
cred_data = load_cred()
|
||||||
|
@ -780,7 +780,7 @@ function cache_file(result, url, last_modified)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function get_http_header(url)
|
function get_http_header(url)
|
||||||
local doer = HTTP
|
local doer = http
|
||||||
local do_redir = true
|
local do_redir = true
|
||||||
if url:match('^https') then
|
if url:match('^https') then
|
||||||
doer = https
|
doer = https
|
||||||
|
Reference in New Issue
Block a user