Skip to content

Applied changes to percent encoding of query parameters in the uri_builder #126

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

Merged
merged 3 commits into from
Nov 24, 2018

Conversation

glynos
Copy link
Member

@glynos glynos commented Nov 11, 2018

Applies fix for #121 .

I've added append_query_parameter and deprecated append_query. The behaviour of append_query has changed and is strongly recommended not to use it. The behaviour before was unsafe anyway, so that I hope that with the documented warning and deprecation, this should be OK.

I updated some tests to reflect the changes.

Please also consider the consistency of the implementation of query_iterator in your review.

Copy link
Contributor

@mtrenkmann mtrenkmann left a comment

Choose a reason for hiding this comment

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

I've added a few comments. I see two main issues:

  1. encode_query should not be used.
  2. Consistent naming: a query parameter is a name/value pair. The value part is optional.

@glynos glynos self-assigned this Nov 13, 2018
@glynos glynos modified the milestones: 1.0, 1.1 Nov 13, 2018
@glynos glynos merged commit 983f9cf into cpp-netlib:master Nov 24, 2018
@glynos glynos deleted the append_query_26 branch November 24, 2018 13:18
@mtrenkmann
Copy link
Contributor

👍

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

Successfully merging this pull request may close these issues.

2 participants