소스 검색

Updated multipart form data encoding threshold to use explicit 10 MB limit.

Christian Noon 9 년 전
부모
커밋
fd17185141
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Source/SessionManager.swift

+ 2 - 2
Source/SessionManager.swift

@@ -126,8 +126,8 @@ public class SessionManager {
         ]
     }()
 
-    /// Default memory threshold used when encoding `MultipartFormData`.
-    public static let multipartFormDataEncodingMemoryThreshold: UInt64 = 10 * 1024 * 1024
+    /// Default memory threshold used when encoding `MultipartFormData` in bytes.
+    public static let multipartFormDataEncodingMemoryThreshold: UInt64 = 10_000_000
 
     /// The underlying session.
     public let session: URLSession