You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/http-auth-aws/src/main/java/software/amazon/awssdk/http/auth/aws/internal/signer/AwsChunkedV4PayloadSigner.java
Copy file name to clipboardExpand all lines: core/http-auth-aws/src/main/java/software/amazon/awssdk/http/auth/aws/internal/signer/util/SignerUtils.java
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -225,10 +225,13 @@ public static long computeAndMoveContentLength(SdkHttpRequest.Builder request, C
225
225
}
226
226
227
227
/**
228
-
* Move `Content-Length` to `x-amz-decoded-content-length` if not already present. If `Content-Length` is not present, then
229
-
* the payload is read in its entirety to calculate the length.
228
+
* Move Content-Length` to `x-amz-decoded-content-length` if not already present. If `Content-Length` is not present, the
229
+
* future is completed exceptionally. Note: this behavior differs from the sync version
230
+
* {@link #computeAndMoveContentLength(SdkHttpRequest.Builder, ContentStreamProvider)} as the sync version reads the entire
231
+
* stream to compute the length if the header is not present. The async version was introduced after the sync version; moving
232
+
* forward, requests that have an unknown content length should be done through chunked transfer encoding.
Copy file name to clipboardExpand all lines: core/http-auth-aws/src/test/java/software/amazon/awssdk/http/auth/aws/internal/signer/util/SignerUtilsTest.java
0 commit comments