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

Fix WithQueryParameters to properly encode multi-values #467

Merged
merged 1 commit into from
Sep 6, 2019

Conversation

jhendrixMSFT
Copy link
Member

@jhendrixMSFT jhendrixMSFT commented Sep 6, 2019

The call to ensureValueStrings() was flattening slices into a string and
as a result multi-value query parameters were malformed.

Thank you for your contribution to Go-AutoRest! We will triage and review it as soon as we can.

As part of submitting, please make sure you can make the following assertions:

  • I've tested my changes, adding unit tests if applicable.
  • I've added Apache 2.0 Headers to the top of any new source files.
  • I'm submitting this PR to the dev branch, except in the case of urgent bug fixes warranting their own release.
  • If I'm targeting master, I've updated CHANGELOG.md to address the changes I'm making.

@jhendrixMSFT
Copy link
Member Author

Part of the fix for #309

The call to ensureValueStrings() was flattening slices into a string and
as a result multi-value query parameters were malformed.
@jhendrixMSFT jhendrixMSFT changed the title Add WithQueryParameters2 Fix WithQueryParameters to properly encode multi-values Sep 6, 2019
Copy link
Member

@devigned devigned left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@jhendrixMSFT jhendrixMSFT merged commit 69b4126 into Azure:master Sep 6, 2019
@jhendrixMSFT jhendrixMSFT deleted the queryparams branch September 6, 2019 23:04
pdecat pushed a commit to pdecat/go-autorest that referenced this pull request Oct 3, 2019
The call to ensureValueStrings() was flattening slices into a string and
as a result multi-value query parameters were malformed.
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

Successfully merging this pull request may close these issues.

2 participants