summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index b99a8e8b..c3c824a6 100644
--- a/app.js
+++ b/app.js
@@ -407,7 +407,7 @@ app.post('/uploadimage', function (req, res) {
if (config.debug)
logger.info('SERVER uploadimage success: ' + JSON.stringify(json));
res.send({
- link: json.data.link
+ link: json.data.link.replace(/^http:\/\//i, 'https://')
});
})
.catch(function (err) {