Skip to content

Commit

Permalink
Fixes hash computation to use encoded URL #️⃣
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobvogel committed Dec 27, 2019
1 parent 5484a94 commit f747c1a
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 @@ -118,7 +118,7 @@ private String buildStringToSign(final WebContext ctx,
private StringBuilder buildCanonicalRequest(final WebContext ctx, final String signedHeaders) {
StringBuilder canonicalRequest = new StringBuilder(ctx.getRequest().method().name());
canonicalRequest.append("\n");
canonicalRequest.append(ctx.getRequestedURI());
canonicalRequest.append(ctx.getRawRequestedURI());
canonicalRequest.append("\n");

appendCanonicalQueryString(ctx, canonicalRequest);
Expand Down

0 comments on commit f747c1a

Please sign in to comment.