Skip to content

Commit

Permalink
Fix APIRequest+SendMultipart
Browse files Browse the repository at this point in the history
Allow to send multipart with any method
  • Loading branch information
MihaelIsaev committed Jun 19, 2019
1 parent c272a33 commit e19cd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodyFire/Classes/APIRequest+SendMultipart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ extension APIRequest {
} catch {
log(.error, "🆘 preparing multipart codable object failed with error: \(error)")
}
}, to: url, method: .post, headers: headers) { encodingResult in
}, to: url, method: method, headers: headers) { encodingResult in
switch encodingResult {
case .success(let upload, _, _):
upload.response { response in
Expand Down

0 comments on commit e19cd83

Please sign in to comment.