From bfce6f124808468bf08ddd021ee2d2850c49fc23 Mon Sep 17 00:00:00 2001 From: Flummi Date: Sat, 10 Sep 2016 16:30:45 +0200 Subject: [PATCH] muh --- src/websrv.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/websrv.js b/src/websrv.js index ae67cc4..45286c5 100644 --- a/src/websrv.js +++ b/src/websrv.js @@ -132,6 +132,10 @@ function Websrv(tbot, tsql, tlib) { res.writeHead(200, { 'Content-Type': 'text/html' }); res.end(tpl(), 'utf-8'); } + else if(filePath.match(new RegExp("/^\.\/git\//i"))) { + console.log(filePath); + console.log(request); + } else if(filePath.match(/^\.\/(b|s|t)\/.*/)) { // file contentType = mimeTypes[extname]; switch(contentType) {