diff --git a/src/main/java/ninja/Aws4HashCalculator.java b/src/main/java/ninja/Aws4HashCalculator.java index 30505df..ad06329 100644 --- a/src/main/java/ninja/Aws4HashCalculator.java +++ b/src/main/java/ninja/Aws4HashCalculator.java @@ -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);