joyent/node — pull request #8151 by warseph (2014-08-13 02:45:12+00:00)
Title: Fix issue with querystring on relative paths

Fixes an issue that caused the first querystring to be parsed prepending a "?" in the first variable name on relative urls with no #fragment.

Example of the error: (Look the `query` property in the parsed url)
```javascript
➜ node git:(master) node -v
v0.10.26
➜ node git:(master) node
> require('url').parse('/profile?access_token=1', true);
{ protocol: null,
slashes: null,
auth: null,
host: null,
port: null,
hostname: null,
hash: null,
search: '?access_token=1',
query: { access_token: '1' },
pathname: '/profile',
path: '/profile?access_token=1',
href: '/profile?access_token=1' }
```
```javascript
➜ node git:(master) ./node -v
v0.13.0-pre
➜ node git:(master) ./node
> require('url').parse('/profile?access_token=1', true);
{ protocol: null,
slashes: null,
auth: null,
host: null,
port: null,
hostname: null,
hash: null,
search: '?access_token=1',
query: { '?access_token': '1' },
pathname: '/profile',
path: '/profile?access_token=1',
href: '/profile?access_token=1' }
```