1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-15 14:57:42 +00:00

Network performance optimizations for node.js (#5436)

This commit is contained in:
FlashSystems
2021-05-08 17:05:39 +02:00
committed by GitHub
parent e699cf1fe8
commit f4d7b2c7f7
10 changed files with 83 additions and 39 deletions

View File

@@ -17,9 +17,8 @@ exports.method = "GET";
exports.path = /^\/favicon.ico$/;
exports.handler = function(request,response,state) {
response.writeHead(200, {"Content-Type": "image/x-icon"});
var buffer = state.wiki.getTiddlerText("$:/favicon.ico","");
response.end(buffer,"base64");
state.sendResponse(200,{"Content-Type": "image/x-icon"},buffer,"base64");
};
}());