gentleman icon indicating copy to clipboard operation
gentleman copied to clipboard

Issue with escaping parameters

Open kedare opened this issue 4 years ago • 0 comments

Hello.

I am having an issue with the way Gentleman escape the parameters, I can't get it to work in my case,

I am building a request with a dynamic parameter that contains a "/" that need to be escaped as "%2F",

I tried multiple ways but could not make it work so far.

Either it doesn't escape anything when I set the parameter like this (so sends the "/" as this) :

request.Param("targetTag", targetTag)

Or it double escape when I do this way (and send "%252F") :

request.Param("targetTag", url.PathEscape(targetTag))

Any idea of how to do this ?

Thanks

kedare avatar May 07 '20 09:05 kedare