Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 20e92ac

Browse files
committed
Fix getting response body from WP.com REST API
1 parent d84d68f commit 20e92ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPressKit/WordPressComRestApi.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ open class WordPressComRestApi: NSObject {
215215
parameters: [String: AnyObject]?,
216216
completion: @escaping (Swift.Result<(Data, HTTPURLResponse?), Error>) -> Void) {
217217
Task { @MainActor in
218-
let result: APIResult<Data> = await perform(.get, URLString: URLString, parameters: parameters)
218+
let result = await perform(.get, URLString: URLString, parameters: parameters, fulfilling: nil, decoder: { $0 })
219219

220220
completion(
221221
result

0 commit comments

Comments
 (0)