From 3cc2ae02dae8f3e949cd2410b5bdb35f8a379269 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Mon, 26 Dec 2016 15:19:58 +0100 Subject: Remove server port from back url --- serverstore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serverstore.js b/serverstore.js index b24af20..a420c16 100755 --- a/serverstore.js +++ b/serverstore.js @@ -97,7 +97,7 @@ app.post("/image/:userid/:authhash/:fname",function(req,res){ fs.mkdirSync("images/"+req.ssuser[0]); } fs.writeFileSync("images/"+req.ssuser[0]+"/"+req.ssfname,req.body); - res.end("http://"+req.hostname+(HTTPPORT!=80?":"+HTTPPORT:"")+"/ssimg/"+req.ssuser[0]+"/"+req.sscode); + res.end("http://"+req.hostname+"/ssimg/"+req.ssuser[0]+"/"+req.sscode); }); -- cgit v1.2.3-70-g09d2