Merge branch 'master' of ssh://repos.thedevstack.de/httpupload

This commit is contained in:
steckbrief 2018-10-05 13:14:53 +02:00
commit 30afe3e279

View file

@ -15,8 +15,9 @@ local xmpp_server_key = module:get_option("http_upload_external_server_key");
local filetransfer_manager_ui_url = module:get_option("filetransfer_manager_ui_url");
-- imports
require"https";
local st = require"util.stanza";
local http = require"socket.http";
local http = (string.len(external_url) >= 5 and string.sub(external_url,1,5) == "https") and require"ssl.https" or require"socket.http";
local json = require"util.json";
local dataform = require "util.dataforms".new;
local ltn12 = require"ltn12";