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

Fixed https://github.com/Mastercard/oauth1-signer-java/issues/12 #13

Merged
merged 3 commits into from
Apr 26, 2019
Merged

Fixed https://github.com/Mastercard/oauth1-signer-java/issues/12 #13

merged 3 commits into from
Apr 26, 2019

Conversation

jaaufauvre
Copy link
Member

This is some code for #12.

for (String pair : pairs) {
final int idx = pair.indexOf('=');
String key = idx > 0 ? pair.substring(0, idx) : pair;
if (!queryPairs.containsKey(key)) {
key = Util.percentEncode(key, charset);
key = isDecoded ? key : Util.percentEncode(key, charset);
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of isDecoded, would isEncoded make more intuitive sense? To me, decoded means it's just in non-encoded form.

@jaaufauvre jaaufauvre merged commit 507ec44 into Mastercard:master Apr 26, 2019
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