Procházet zdrojové kódy

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

Christian Noon před 9 roky
rodič
revize
fd17185141
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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