Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with escaping parameters #52

Open
kedare opened this issue May 7, 2020 · 0 comments
Open

Issue with escaping parameters #52

kedare opened this issue May 7, 2020 · 0 comments

Comments

@kedare
Copy link

kedare commented May 7, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant