This commit is contained in:
Flummi 2016-09-10 16:36:59 +02:00
parent 0d92b9a8f1
commit 5110f23700

View File

@ -135,6 +135,8 @@ function Websrv(tbot, tsql, tlib) {
else if(filePath.match(/^\.\/git\//i)) {
console.log(filePath);
console.log(req);
res.writeHead(200, { 'Content-Type': 'text/html' });
res.end('muh', 'utf-8');
}
else if(filePath.match(/^\.\/(b|s|t)\/.*/)) { // file
contentType = mimeTypes[extname];