Comparison

plugins/mod_http.lua @ 7359:a5a080c12c96

Update every link to the documentation to use HTTPS
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 16 Apr 2016 21:08:05 +0100
parent 7247:44b39c02eb33
child 7518:829ebe806e82
comparison
equal deleted inserted replaced
7358:d0390bc9c5d1 7359:a5a080c12c96
118 module:hook_object_event(server, event_name, handler); 118 module:hook_object_event(server, event_name, handler);
119 else 119 else
120 module:log("warn", "App %s added handler twice for '%s', ignoring", app_name, event_name); 120 module:log("warn", "App %s added handler twice for '%s', ignoring", app_name, event_name);
121 end 121 end
122 else 122 else
123 module:log("error", "Invalid route in %s, %q. See http://prosody.im/doc/developers/http#routes", app_name, key); 123 module:log("error", "Invalid route in %s, %q. See https://prosody.im/doc/developers/http#routes", app_name, key);
124 end 124 end
125 end 125 end
126 local services = portmanager.get_active_services(); 126 local services = portmanager.get_active_services();
127 if services:get("https") or services:get("http") then 127 if services:get("https") or services:get("http") then
128 module:log("debug", "Serving '%s' at %s", app_name, module:http_url(app_name, app_path)); 128 module:log("debug", "Serving '%s' at %s", app_name, module:http_url(app_name, app_path));