From e5c761ffb872c6c6ebc1dd8b7707e8aec17ef51e Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Wed, 1 Feb 2023 00:00:58 -0800 Subject: [PATCH] Fix binary data in HTTP.swift --- Sources/Osiris/HTTP.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Osiris/HTTP.swift b/Sources/Osiris/HTTP.swift index 642d661..72b2dbf 100644 --- a/Sources/Osiris/HTTP.swift +++ b/Sources/Osiris/HTTP.swift @@ -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