doc: mention the behaviour if URL is invalid
If the URL passed to `http.request` is not properly parsable by `url.parse`, we fall back to use `localhost` and port 80. This creates confusing error messages like in this question http://stackoverflow.com/q/32675907/1903116. PR-URL: https://github.com/nodejs/node/pull/2966 Reviewed-By:James M Snell <jasnell@gmail.com>
parent
a6469e90
Please register or sign in to comment