Skip to content

Commit

Permalink
Encodes spaces as %20 instead of + 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobvogel committed Sep 22, 2020
1 parent 435367a commit 0902564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ninja/Aws4HashCalculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private void appendQueryStringValue(String name,
}
canonicalRequest.append(Strings.urlEncode(name));
canonicalRequest.append("=");
canonicalRequest.append(Strings.urlEncode(value));
canonicalRequest.append(Strings.urlEncode(value).replace("+", "%20"));
}

private String hashedCanonicalRequest(final StringBuilder canonicalRequest) {
Expand Down

0 comments on commit 0902564

Please sign in to comment.