diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-12-26 15:19:58 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-12-26 15:19:58 +0100 |
commit | 3cc2ae02dae8f3e949cd2410b5bdb35f8a379269 (patch) | |
tree | 849660146bf922a9be681de830115bcd78165455 | |
parent | aab7f4f56f434ed7f8134684ce5cd6b1cc3be080 (diff) |
Remove server port from back url
-rwxr-xr-x | serverstore.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); }); |