Skip to content

Commit

Permalink
Fix an XMLRPC uploading file issue
Browse files Browse the repository at this point in the history
  • Loading branch information
crazytonyli committed Feb 21, 2024
1 parent 3aad06a commit 6361cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WordPressKit/HTTPRequestBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ final class HTTPRequestBuilder {
} else {
let data = try encoder.dataEncoded()
request.setValue("\(data.count)", forHTTPHeaderField: "Content-Length")
return try .left(encoder.dataEncoded())
return .left(data)
}
}
}
Expand Down

0 comments on commit 6361cf2

Please sign in to comment.