Node.js: Are schemaless URIs supported by request module? -
are someway schemaless uris supported request module?
i can't find reference in docs, nor googling.
trying request schemaless uri (//www.example.com/
), grumbles "error: invalid uri"...
these called protocol relative urls. not recommended because ssl encouraged everywhere.
when running node script there no base scheme opposed when running in browser. request
has no way of knowing scheme use.
> url.parse("//www.example.com").protocol null
Comments
Post a Comment