Skip to content

Commit 6edf1e7

Browse files
committed
rename responseHead to head
1 parent 23682ac commit 6edf1e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/AsyncHTTPClient/FileDownloadDelegate.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ public final class FileDownloadDelegate: HTTPClientResponseDelegate {
2323
public struct Progress: Sendable {
2424
public var totalBytes: Int?
2525
public var receivedBytes: Int
26-
public var responseHead: HTTPResponseHead!
26+
public var head: HTTPResponseHead!
2727
}
2828

29-
private var progress = Progress(totalBytes: nil, receivedBytes: 0, responseHead: nil)
29+
private var progress = Progress(totalBytes: nil, receivedBytes: 0, head: nil)
3030

3131
public typealias Response = Progress
3232

@@ -136,7 +136,7 @@ public final class FileDownloadDelegate: HTTPClientResponseDelegate {
136136
) -> EventLoopFuture<Void> {
137137
self.reportHead?(task, head)
138138

139-
self.progress.responseHead = head
139+
self.progress.head = head
140140

141141
if let totalBytesString = head.headers.first(name: "Content-Length"),
142142
let totalBytes = Int(totalBytesString)

0 commit comments

Comments
 (0)