Skip to content

Commit b7ac679

Browse files
author
Capacitor+ Bot
committed
chore: sync upstream PR ionic-team#7513 from @jcesarmobile
2 parents 270d700 + 71a0e75 commit b7ac679

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

android/capacitor/src/main/java/com/getcapacitor/plugin/util/CapacitorHttpUrlConnection.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ private void writeFormDataRequestBody(String contentType, JSArray entries) throw
284284
os.writeBytes(twoHyphens + boundary + lineEnd);
285285
os.writeBytes("Content-Disposition: form-data; name=\"" + key + "\"; filename=\"" + fileName + "\"" + lineEnd);
286286
os.writeBytes("Content-Type: " + fileContentType + lineEnd);
287-
os.writeBytes("Content-Transfer-Encoding: binary" + lineEnd);
288287
os.writeBytes(lineEnd);
289288

290289
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {

ios/Capacitor/Capacitor/Plugins/CapacitorUrlRequest.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ open class CapacitorUrlRequest: NSObject, URLSessionTaskDelegate {
131131
data.append("--\(boundary)\r\n".data(using: .utf8)!)
132132
data.append("Content-Disposition: form-data; name=\"\(key!)\"; filename=\"\(fileName!)\"\r\n".data(using: .utf8)!)
133133
data.append("Content-Type: \(fileContentType!)\r\n".data(using: .utf8)!)
134-
data.append("Content-Transfer-Encoding: binary\r\n".data(using: .utf8)!)
135134
data.append("\r\n".data(using: .utf8)!)
136135

137136
data.append(Data(base64Encoded: value)!)

0 commit comments

Comments
 (0)