net/httpserver.lua
changeset 7362 a5a080c12c96
parent 6783 647adfd8f738
child 8558 4f0f5b49bb03
equal deleted inserted replaced
7361:d0390bc9c5d1 7362:a5a080c12c96
     3 local traceback = debug.traceback;
     3 local traceback = debug.traceback;
     4 
     4 
     5 local _ENV = nil;
     5 local _ENV = nil;
     6 
     6 
     7 function fail()
     7 function fail()
     8 	log("error", "Attempt to use legacy HTTP API. For more info see http://prosody.im/doc/developers/legacy_http");
     8 	log("error", "Attempt to use legacy HTTP API. For more info see https://prosody.im/doc/developers/legacy_http");
     9 	log("error", "Legacy HTTP API usage, %s", traceback("", 2));
     9 	log("error", "Legacy HTTP API usage, %s", traceback("", 2));
    10 end
    10 end
    11 
    11 
    12 return {
    12 return {
    13 	new = fail;
    13 	new = fail;