diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-07-07 17:07:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-07 17:07:31 -0500 |
| commit | 566a0e54e9578bc1e4543054bb66b016fd397d57 (patch) | |
| tree | 0ce6b4e2b380dbd5182bd17886e80368755a3c55 /src/slskd/Integrations/Webhooks/WebhookService.cs | |
| parent | ab13639cc3ba0b056937fc2ea3502291e26fb791 (diff) | |
| parent | 64be2396d66a6861e4525a4aba0faeabf14035e0 (diff) | |
| download | slskd-566a0e54e9578bc1e4543054bb66b016fd397d57.tar.gz | |
Merge branch 'master' into transfer-indexes
Diffstat (limited to 'src/slskd/Integrations/Webhooks/WebhookService.cs')
| -rw-r--r-- | src/slskd/Integrations/Webhooks/WebhookService.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/slskd/Integrations/Webhooks/WebhookService.cs b/src/slskd/Integrations/Webhooks/WebhookService.cs index b08b0484..62739d7a 100644 --- a/src/slskd/Integrations/Webhooks/WebhookService.cs +++ b/src/slskd/Integrations/Webhooks/WebhookService.cs @@ -94,7 +94,10 @@ public class WebhookService } var content = new StringContent( - content: JsonSerializer.Serialize(data, JsonSerializerOptions), + content: JsonSerializer.Serialize( + value: data, + inputType: data.GetType(), // if omitted object is serialized as EventType, losing everything else + options: JsonSerializerOptions), encoding: Encoding.UTF8, mediaType: "application/json"); |
