Skip to content

Commit 5549463

Browse files
committed
_body is gone; use knownBody instead.
1 parent 5f53ffb commit 5549463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/URLSession/URLSessionTask.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ open class URLSessionTask : NSObject, NSCopying {
5454

5555
default:
5656
let toBeSent: Int64?
57-
if let bodyLength = try? self.body.getBodyLength() {
57+
if let bodyLength = try? self.knownBody?.getBodyLength() {
5858
toBeSent = Int64(clamping: bodyLength)
5959
} else if self.countOfBytesExpectedToSend > 0 {
6060
toBeSent = Int64(clamping: self.countOfBytesExpectedToSend)

0 commit comments

Comments
 (0)