You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the generated code builds arrays like so ?myParam=var1,var2,var3 which is not properly parsed by most servers, and in fact as far as I can tell this format is not even handled by Servant's own QueryParams.
The correctly generated javascript should look like: ?myParam=var1&myParam=var2&myParam=var3 and this list should itself be generated in javascript, at runtime, because it depends on the array parameter passed into the function.
Some servers also accept ?myParam[]=var1&myParam[]=var2&myParam[]=var3, but not all.
It doesn't seem like anybody has really tried using this generated JS code...
The text was updated successfully, but these errors were encountered:
It seems like the generated code builds arrays like so
?myParam=var1,var2,var3
which is not properly parsed by most servers, and in fact as far as I can tell this format is not even handled by Servant's ownQueryParams
.The correctly generated javascript should look like:
?myParam=var1&myParam=var2&myParam=var3
and this list should itself be generated in javascript, at runtime, because it depends on the array parameter passed into the function.Some servers also accept
?myParam[]=var1&myParam[]=var2&myParam[]=var3
, but not all.It doesn't seem like anybody has really tried using this generated JS code...
The text was updated successfully, but these errors were encountered: