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

withParam with empty strings - wrong output url #222

Closed
ligal opened this issue Aug 30, 2017 · 1 comment
Closed

withParam with empty strings - wrong output url #222

ligal opened this issue Aug 30, 2017 · 1 comment

Comments

@ligal
Copy link

ligal commented Aug 30, 2017

Using -
resource("/api").withParam("x","").withParam("y","")

expected output - "/api?x=&y="
current output - "/api?x"

some web apis need all their params to find the correct route.
this is how i found out about this issue.

please advice.

@pcantrell
Copy link
Member

Ah, that's a bug. Mysterious!

(The correct result should be /api?x&y, not /api?x=&y=. Siesta drops the = for empty string param values.)

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

2 participants