Browse Source

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

Ondrej Stocek 7 years ago
parent
commit
0f2135b0b3
1 changed files with 1 additions and 1 deletions
  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 } }
     public var contentLength: UInt64 { return bodyParts.reduce(0) { $0 + $1.bodyContentLength } }
 
 
     /// The boundary used to separate the body parts in the encoded form data.
     /// 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 bodyParts: [BodyPart]
     private var bodyPartError: AFError?
     private var bodyPartError: AFError?