X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=net%2Fhttpserver.lua;h=ca830a5a13966c05558b507ddb841bc9d1db90b1;hb=a80351f51fec65900f1f3c7e00e48333cb173d2e;hp=b6a080b684ff7f10c87075462d067a7e596340b7;hpb=4afe55443fba719c361a17c5dec330ce7a5fc875;p=prosody.git diff --git a/net/httpserver.lua b/net/httpserver.lua index b6a080b6..ca830a5a 100644 --- a/net/httpserver.lua +++ b/net/httpserver.lua @@ -31,7 +31,7 @@ module "httpserver" local default_handler; local function expectbody(reqt) - return reqt.method == "POST"; + return reqt.method == "POST"; end local function send_response(request, response) @@ -212,8 +212,8 @@ function new_from_config(ports, handle_request, default_options) ssl.options = "no_sslv2"; end - new{ port = port, interface = interface, - base = base, handler = handle_request, + new{ port = port, interface = interface, + base = base, handler = handle_request, ssl = ssl, type = (ssl and "ssl") or "tcp" }; end end