http: better client "protocol not supported" error
authorNathan Rajlich <nathan@tootallnate.net>
Tue, 25 Mar 2014 20:48:57 +0000 (10:48 -1000)
committerNathan Rajlich <nathan@tootallnate.net>
Fri, 28 Mar 2014 21:05:35 +0000 (11:05 -1000)
commit6d15b163b090f7dd218843fdca55f874da5daead
tree10d823d0d33e83a8b91c28c3c853376921f9f76b
parent85d595c8c252910559b82952753d831eae1798e5
http: better client "protocol not supported" error

Include the "expected protocol" in the Error message
string, which evaluates to "http:" for the `http`
core module, and "https:" for the `https` module.

Closes #7355.
lib/_http_client.js
test/simple/test-http-url.parse-only-support-http-https-protocol.js