That is the correct behavior — a + represents a space in a URL, so it should be 
converted to a space by url.parse (which it is).

-Matt


On Mar 28, 2012, at 8:53 PM, billywhizz wrote:

> thank matt, but i am still seeing unexpected behaviour. i've put a gist up 
> here which shows the issue:
> 
> https://gist.github.com/2233092
> 
> when i run the test using curl or a browser then i get the following result 
> from url.parse, which is incorrect:
> 
>  { search: '?name=abc123+111',
>   query: { name: 'abc123 111' }, // note the + has been replaced with a space
>   pathname: '/index',
>   path: '/index?name=abc123+111',
>   href: '/index?name=abc123+111' }
> 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to