Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

zero value parameters are not passed to URL #1394

Closed
bingomanatee opened this issue Sep 20, 2012 · 2 comments
Closed

zero value parameters are not passed to URL #1394

bingomanatee opened this issue Sep 20, 2012 · 2 comments

Comments

@bingomanatee
Copy link

https://gist.github.com/ec07fccaef99ff9a80f1#comments

parameters valued at zero are not passed to the parameter.

if I take out the '' + for scope.start, then zero is NOT inserted into the URL of the POST - you don't get
POST /noogle/find_result/20/0?format=json

you get

POST/noogle/find_result/20?format=json

basically parameters of 0 are falsy and not inserted into URLs.

@FrederikNJS
Copy link

I ran into this error as well... My team thought it would be a good idea to have our REST call Id's be zero indexed, but found that the first element (id 0) would simply result in the REST call without id.

@pkozlowski-opensource
Copy link
Member

Duplicate of #1499

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

No branches or pull requests

3 participants