Skip to content

Commit

Permalink
Remove usage of ByteArrayContent
Browse files Browse the repository at this point in the history
  • Loading branch information
lauzadis committed Oct 6, 2023
1 parent cfc0ce5 commit 5cfcb17
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
package aws.smithy.kotlin.runtime.http.interceptors

import aws.smithy.kotlin.runtime.http.*
import aws.smithy.kotlin.runtime.http.content.ByteArrayContent
import aws.smithy.kotlin.runtime.http.interceptors.ClockSkewInterceptor.Companion.CLOCK_SKEW_THRESHOLD
import aws.smithy.kotlin.runtime.http.interceptors.ClockSkewInterceptor.Companion.getSkew
import aws.smithy.kotlin.runtime.http.interceptors.ClockSkewInterceptor.Companion.isSkewed
Expand Down Expand Up @@ -78,7 +77,7 @@ class ClockSkewInterceptorTest {
)

val req = HttpRequestBuilder().apply {
body = ByteArrayContent("<Foo>bar</Foo>".encodeToByteArray())
body = "<Foo>bar</Foo>".encodeToByteArray().toHttpBody()
}
req.headers.append("x-amz-date", clientTimeString)

Expand Down Expand Up @@ -106,7 +105,7 @@ class ClockSkewInterceptorTest {
)

val req = HttpRequestBuilder().apply {
body = ByteArrayContent("<Foo>bar</Foo>".encodeToByteArray())
body = "<Foo>bar</Foo>".encodeToByteArray().toHttpBody()
}
req.headers.append("x-amz-date", clientTimeString)

Expand Down

0 comments on commit 5cfcb17

Please sign in to comment.