Treat "//some_path" as pathname rather than hostname by default.
authorisaacs <i@izs.me>
Wed, 1 Sep 2010 00:59:50 +0000 (17:59 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Thu, 2 Sep 2010 16:24:21 +0000 (09:24 -0700)
commit0e311717b5bbec7f3fbf0b06592bfa19cc11becc
tree6574156779899dcc1f710e5b1289f3e63bee2224
parent7347fb3e2c445222598646262cec262f9dacee91
Treat "//some_path" as pathname rather than hostname by default.

Note that "//" is still a special indicator for the hostname, and this does
not change the parsing of mailto: and other "slashless" url schemes.  It
does however remove some oddness in url.parse(req.url) which is the most
common use-case for the url.parse function.
lib/url.js
test/simple/test-url.js