Răsfoiți Sursa

[PR #2705] Allow changing boundary string in upload:multipartFormData callback

Ondrej Stocek 7 ani în urmă
părinte
comite
0f2135b0b3
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      Source/MultipartFormData.swift

+ 1 - 1
Source/MultipartFormData.swift

@@ -98,7 +98,7 @@ open class MultipartFormData {
     public var contentLength: UInt64 { return bodyParts.reduce(0) { $0 + $1.bodyContentLength } }
 
     /// The boundary used to separate the body parts in the encoded form data.
-    public let boundary: String
+    public var boundary: String
 
     private var bodyParts: [BodyPart]
     private var bodyPartError: AFError?