In a query string, a plus gets translated to a space.

See: http://en.wikipedia.org/wiki/Base64#URL_applications

-Matt


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

> i am passing a base64 encode sha1 digest in a query string but when i do a 
> require("url").parse("/index?digest=QMEZSdNfGCPNMM+vyP1LqH8Efv4=") the 
> returned query.digest has the + replaced with a space. this seems to be what 
> is coded for in querystring.js ( 
> https://github.com/joyent/node/blob/master/lib/querystring.js#L58) but it 
> looks like a bug to me. is this the correct behaviour?
> 
> -- 
> 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