Skip to content

Commit

Permalink
Fix AsyncHTTPClient deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Oct 24, 2024
1 parent 9a571db commit 9d6c60b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ let package = Package(
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0"..<"3.0.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.7.2"),
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.13.1"),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.21.0"),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.23.0"),
.package(url: "https://github.com/adam-fowler/jmespath.swift.git", from: "1.0.2"),
],
targets: [
Expand Down
2 changes: 1 addition & 1 deletion Sources/SotoCore/HTTP/AsyncHTTPClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extension AsyncHTTPClient.HTTPClient: AWSHTTPClient {
case .asyncSequence(let sequence, let length):
requestBody = .stream(
sequence,
length: length.map { .known($0) } ?? .unknown
length: length.map { .known(Int64($0)) } ?? .unknown
)
}
var httpRequest = HTTPClientRequest(url: request.url.absoluteString)
Expand Down

0 comments on commit 9d6c60b

Please sign in to comment.