-
Notifications
You must be signed in to change notification settings - Fork 718
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
SetQueryParams does not support "Multi" inputs #28
Comments
I tried it, it didn't work, i looked further in net/url package, it is also a dictionary, so either way it will not work.
|
see this, https://golang.org/pkg/net/url/ func (Values) Add func (v Values) Add(key, value string) |
Update:
|
@guohuang I have updated the comment. |
yes, we can always use |
I will add this support, also I have updated the previous comment. Once done I will update this issue. |
I have added the support. It's available on master. Give it a try and let me know. |
yup, it works! thanks for the quick fix! |
Nice. I'm closing this one. |
BTW, I have added this new method SetMultiValueQueryParams. |
Nice! you are really quick and professional! |
Has the function name changed overtime? It seems it is "SetQueryParamsFromValues" now. |
Does Resty support Multiple params? I am passing any array of statuses for query param, i am expecting the querystring is
?status=pending&status=approved
, but what i got from the debugger is only appending the first value,(status=pending)here is my code
fyi, i also tried SetQueryParams, but since it is a dictionary, you can't have multiple values, so it won't work either. I know the work around is converting status array to a comma separated strings, but I prefer to set multiple parameters.
are you going to add this feature in the near future?
cc @wing328
The text was updated successfully, but these errors were encountered: