Skip to content

Commit

Permalink
fix missing \r\n after Content-Disposition in iOS (#6722)
Browse files Browse the repository at this point in the history
Co-authored-by: Yasin.Simsek <>
Co-authored-by: Chace Daniels <chaced12@gmail.com>
  • Loading branch information
5uper and ItsChaceD authored Jul 12, 2023
1 parent ca40634 commit 427da42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/Capacitor/Capacitor/Plugins/CapacitorUrlRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ open class CapacitorUrlRequest: NSObject, URLSessionTaskDelegate {
} else if type == "string" {
data.append("\r\n--\(boundary)\r\n".data(using: .utf8)!)
data.append("Content-Disposition: form-data; name=\"\(key!)\"\r\n".data(using: .utf8)!)
data.append("\r\n".data(using: .utf8)!)
data.append(value.data(using: .utf8)!)
data.append("\r\n".data(using: .utf8)!)
}
Expand Down

0 comments on commit 427da42

Please sign in to comment.