Skip to content

Commit

Permalink
Update Multipart.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
pzmudzinski committed Dec 27, 2023
1 parent 1992e66 commit f76ca09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/RemoveBg/Multipart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f76ca09

Please sign in to comment.