Skip to content

Commit e19cd83

Browse files
committed
Fix APIRequest+SendMultipart
Allow to send multipart with any method
1 parent c272a33 commit e19cd83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodyFire/Classes/APIRequest+SendMultipart.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ extension APIRequest {
6363
} catch {
6464
log(.error, "🆘 preparing multipart codable object failed with error: \(error)")
6565
}
66-
}, to: url, method: .post, headers: headers) { encodingResult in
66+
}, to: url, method: method, headers: headers) { encodingResult in
6767
switch encodingResult {
6868
case .success(let upload, _, _):
6969
upload.response { response in

0 commit comments

Comments
 (0)