summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xserverstore.js2
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);
});