Skip to content

Commit 406cd22

Browse files
committed
fix json serialization
1 parent 7287593 commit 406cd22

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sectigo-scm-caplugin/Client/SectigoClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ public async Task<List<Certificate>> PageCertificates(int position = 0, int size
142142

143143
public async Task<bool> RevokeSslCertificateById(int sslId, int revcode, string revreason)
144144
{
145-
JObject o = JObject.FromObject(new
145+
var data = new
146146
{
147147
reasonCode = revcode,
148148
reason = revreason
149-
});
150-
var response = await RestClient.PostAsJsonAsync($"api/ssl/v1/revoke/{sslId}", o);
149+
};
150+
var response = await RestClient.PostAsJsonAsync($"api/ssl/v1/revoke/{sslId}", data);
151151
if (response.IsSuccessStatusCode)
152152
{
153153
return true;

0 commit comments

Comments
 (0)