From f76ca096b5a1b5708f0a06cb7c1483ecb1719494 Mon Sep 17 00:00:00 2001 From: Piotr Zmudzinski Date: Wed, 27 Dec 2023 21:10:44 +0100 Subject: [PATCH] Update Multipart.swift --- Sources/RemoveBg/Multipart.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/RemoveBg/Multipart.swift b/Sources/RemoveBg/Multipart.swift index 05c30d4..0e4c5a9 100644 --- a/Sources/RemoveBg/Multipart.swift +++ b/Sources/RemoveBg/Multipart.swift @@ -21,14 +21,14 @@ struct MultipartFormData { return data } - public mutating func addField(named name: String, value: String) { + mutating func addField(named name: String, value: String) { formData.addField("--\(boundary)") formData.addField("Content-Disposition: form-data; name=\"\(name)\"") formData.addField() formData.addField(value) } - public mutating func addField(named name: String, filename: String, data: Data) { + mutating func addField(named name: String, filename: String, data: Data) { formData.addField("--\(boundary)") formData.addField("Content-Disposition: form-data; name=\"\(name)\"; filename=\"\(filename)\"") formData.addField()