From 62efe2b4d517abc3f8f23b02823865032d5636f0 Mon Sep 17 00:00:00 2001 From: xtexChooser Date: Wed, 5 Apr 2023 13:49:58 +0800 Subject: [PATCH] fix: webhook delivery content-type (#9823) (#10458) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: webhook delivery content-type (#9823) * style: indent * Update packages/backend/src/queue/processors/WebhookDeliverProcessorService.ts Co-authored-by: Acid Chicken (硫酸鶏) * style: trailing comma --------- Co-authored-by: syuilo Co-authored-by: Acid Chicken (硫酸鶏) --- .../src/queue/processors/WebhookDeliverProcessorService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/src/queue/processors/WebhookDeliverProcessorService.ts b/packages/backend/src/queue/processors/WebhookDeliverProcessorService.ts index 39b1b95658..84a5c21c49 100644 --- a/packages/backend/src/queue/processors/WebhookDeliverProcessorService.ts +++ b/packages/backend/src/queue/processors/WebhookDeliverProcessorService.ts @@ -39,6 +39,7 @@ export class WebhookDeliverProcessorService { 'X-Misskey-Host': this.config.host, 'X-Misskey-Hook-Id': job.data.webhookId, 'X-Misskey-Hook-Secret': job.data.secret, + 'Content-Type': 'application/json', }, body: JSON.stringify({ hookId: job.data.webhookId,