Allow incomplete URLs to be parsed correctly

This PR allows URLs like `http://:/path` to be parsed correctly. Those URLs might happen if you create a request from string.