Wednesday, 28 August 2013

Don't encode urls in querystring stringify

Don't encode urls in querystring stringify

Is there any option for qs.stringify that will not encode the urls?
$ node
> var qs = require("querystring");
undefined
> qs.stringify({"url": "http://domain.com"});
'url=http%3A%2F%2Fdomain.com'
I want the folowing output:
'url=http://domain.com'

No comments:

Post a Comment