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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -