mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
Workaround imgur api only provide non-https image url which will cause mix-content warning in browsers
This commit is contained in:
parent
7aa21c8f19
commit
3b5e74c9c4
1 changed files with 1 additions and 1 deletions
2
app.js
2
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) {
|
||||
|
|
Loading…
Reference in a new issue