From b99f4bb53f1f1182a48942232d94bae58b4d0d46 Mon Sep 17 00:00:00 2001 From: Flummi Date: Sat, 10 Sep 2016 16:44:10 +0200 Subject: [PATCH] muh --- src/websrv.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/websrv.js b/src/websrv.js index feb6669..32b090e 100644 --- a/src/websrv.js +++ b/src/websrv.js @@ -132,9 +132,9 @@ function Websrv(tbot, tsql, tlib) { res.writeHead(200, { 'Content-Type': 'text/html' }); res.end(tpl(), 'utf-8'); } - else if(filePath.match(/^\.\/git\//i)) { + else if(filePath == './git') { console.log(filePath); - console.log(req); + console.log(res); res.writeHead(200, { 'Content-Type': 'text/html' }); res.end('muh', 'utf-8'); }