diff --git a/PediFoods/Services/ApiClient.swift b/PediFoods/Services/ApiClient.swift index cfc38c9..7e0c577 100644 --- a/PediFoods/Services/ApiClient.swift +++ b/PediFoods/Services/ApiClient.swift @@ -175,12 +175,12 @@ extension ApiClient { headers: [String: String] ) async throws -> String { let httpMethod = toHTTPMethod(method) + let body: (any HTTPBody)? = params.map { RawBody(data: $0, contentType: "application/json; charset=UTF-8") } return try await API.shared.request( url: url, - params: params, method: httpMethod, + body: body, headers: headers, - jsonEncoding: true, debug: true ) }