File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ public final class FileDownloadDelegate: HTTPClientResponseDelegate {
23
23
public struct Progress : Sendable {
24
24
public var totalBytes : Int ?
25
25
public var receivedBytes : Int
26
- public var responseHead : HTTPResponseHead !
26
+ public var head : HTTPResponseHead !
27
27
}
28
28
29
- private var progress = Progress ( totalBytes: nil , receivedBytes: 0 , responseHead : nil )
29
+ private var progress = Progress ( totalBytes: nil , receivedBytes: 0 , head : nil )
30
30
31
31
public typealias Response = Progress
32
32
@@ -136,7 +136,7 @@ public final class FileDownloadDelegate: HTTPClientResponseDelegate {
136
136
) -> EventLoopFuture < Void > {
137
137
self . reportHead ? ( task, head)
138
138
139
- self . progress. responseHead = head
139
+ self . progress. head = head
140
140
141
141
if let totalBytesString = head. headers. first ( name: " Content-Length " ) ,
142
142
let totalBytes = Int ( totalBytesString)
You can’t perform that action at this time.
0 commit comments