Skip to content

Instantly share code, notes, and snippets.

@rolinh
Last active October 4, 2016 08:27
Show Gist options
  • Save rolinh/0121924ccabb9cd1b188a3669a3695f8 to your computer and use it in GitHub Desktop.
Save rolinh/0121924ccabb9cd1b188a3669a3695f8 to your computer and use it in GitHub Desktop.
url resolve bug?
> var url = require("url");
undefined
> url.resolve("https://foo.tld", "bar");
'https://foo.tld/bar'
> url.resolve("wss://foo.tld", "bar");
'wss://bar'
> url.resolve("ftps://foo.tld", "bar");
'ftps://bar'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment