diff --git a/src/mock/random/image.js b/src/mock/random/image.js index 9eb19235..9161efff 100644 --- a/src/mock/random/image.js +++ b/src/mock/random/image.js @@ -45,7 +45,7 @@ module.exports = { if (foreground && ~foreground.indexOf('#')) foreground = foreground.slice(1) // http://dummyimage.com/600x400/cc00cc/470047.png&text=hello - return 'http://dummyimage.com/' + size + + return 'https://dummyimage.com/' + size + (background ? '/' + background : '') + (foreground ? '/' + foreground : '') + (format ? '.' + format : '') + @@ -279,4 +279,4 @@ module.exports = { ctx.fillText(text, (width / 2), (height / 2), width) return canvas.toDataURL('image/png') } -} \ No newline at end of file +}