-
Notifications
You must be signed in to change notification settings - Fork 362
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
Request set bodyFields, need to be able to have List<String> for a map value #47
Comments
From @lrhn on December 14, 2016 14:18 I think this is referring to the |
From @rwrozelle on December 14, 2016 14:21 Thank you, I followed the link called out at the bottom of https://pub.dartlang.org/packages/http |
From @lrhn on December 14, 2016 14:50 Yeah, that's probably an old link. I'll file an issue for fixing that too. :) |
This seems like a reasonable request. I'd accept a pull request for this. |
I went back and looked at the sample code I provided and it had problems with encoding, below is much closer to original code. Is https://github.com/dart-lang/sdk/wiki/Contributing still the correct approach for making a patch contribution? If so, I'd be happy to give it a try and help by making this enhancement.
|
You can just send a pull request like normal—our bot will guide you through the process of signing the CLI if haven't yet. |
I just opened dart-lang/sdk#28142 since the following test fails:
due to Uri.splitQueryString only returning the last value if the parameter is entered multiple times in the query string. I can create a local 'splitQueryString' method in utils.dart. Would that be acceptable for now in the pull request and then removed if my dart-lang/sdk#28142 request is resolved? |
@rwrozelle Yeah, that's fine. |
I met this problem too during programing , did it fix now ? |
Not yet—I'm still working on hashing out a multi-map proposal. |
Any update for this? |
I encountered this error today trying to send this map as a body |
From @rwrozelle on December 14, 2016 14:5
I need to be able to set bodyFields with a map that has multiple values for a single key, so map would be
Map<String, Object>
where Object would be either aString
orList<String>
at runtime. Here is an example map:{q: *:*, start: 0, rows: 0, facet: true, stats: true, stats.field: [{!countDistinct=true }vin, {!countDistinct=true }veh_year]}
Here is sample code of changes I would like, this is example code only, implementation could be a lot better:
Copied from original issue: dart-lang/sdk#28098
The text was updated successfully, but these errors were encountered: