forked from cory/tildefriends
Add missing statics, and remove the 'tildefriends check' command.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4838 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
10
core/core.js
10
core/core.js
@ -890,16 +890,6 @@ function enableStats(process, enabled) {
|
||||
}
|
||||
}
|
||||
|
||||
function stringResponse(response, data) {
|
||||
let bytes = utf8Encode(data);
|
||||
response.writeHead(200, {
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Content-Length": bytes.byteLength.toString(),
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
});
|
||||
return response.end(bytes);
|
||||
}
|
||||
|
||||
loadSettings().then(function() {
|
||||
if (tildefriends.https_port && gGlobalSettings.http_redirect) {
|
||||
httpd.set_http_redirect(gGlobalSettings.http_redirect);
|
||||
|
Reference in New Issue
Block a user