Skip to content

Commit 4793010

Browse files
committed
use bytes()
1 parent 7e0ebe2 commit 4793010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AsyncHTTPClient/FoundationExtensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ extension HTTPClientResponse {
7070
/// Response body as `Data`.
7171
public var data: Data? {
7272
get async throws {
73-
var bytes = try await self.bytes
73+
var bytes = try await self.bytes()
7474
return bytes.readData(length: bytes.readableBytes)
7575
}
7676
}

0 commit comments

Comments
 (0)