h2non/gentleman

Issue with escaping parameters

kedare opened this issue · 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