mirror of
https://github.com/samsonjs/Osiris.git
synced 2026-04-01 10:05:46 +00:00
Fix binary data in HTTP.swift
This commit is contained in:
parent
063d346567
commit
e5c761ffb8
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ struct HTTPRequest {
|
|||
}
|
||||
parts.append(MultipartFormEncoder.Part(
|
||||
name: name,
|
||||
content: .binary(data, type: "image/jpeg", filename: filename ?? "image.jpeg")
|
||||
content: .binaryData(data, type: "image/jpeg", filename: filename ?? "image.jpeg")
|
||||
))
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue