hedgedoc/lib/web/imageRouter
Sheogorath 0621d7a72d
Fix usage of new URL API
Due to the deprecation of the old `url`-API provided by NodeJS we
replaced `url.resolve` with `url.URL.resolve`, which doesn't exist.

This patch fixes the local filesystem upload of CodiMD by using the new
API correctly. Creating an URL object and using its href.

Some more background:
https://nodejs.org/api/url.html#url_url_href
https://nodejs.org/api/url.html#url_url_resolve_from_to

Fixes https://github.com/hackmdio/codimd/issues/1102

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-12-18 14:52:18 +01:00
..
azure.js Add Azure Blob Storage support 2018-06-01 10:07:52 +02:00
filesystem.js Fix usage of new URL API 2018-12-18 14:52:18 +01:00
imgur.js Fix callback validation 2018-06-01 14:26:28 +02:00
index.js Fix possible error if HackMD is started with wrong workdir 2018-06-23 23:01:01 +02:00
minio.js Fix callback validation 2018-06-01 14:26:28 +02:00
s3.js Fix callback validation 2018-06-01 14:26:28 +02:00