From 9b55b65906d77bd46e1d0007fa27e952563c270e Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Thu, 20 Oct 2022 14:05:00 +0200 Subject: [PATCH] Revert "Set "application/json" content type header in TechInsightsClient" Signed-off-by: Patrik Oldsberg --- .changeset/poor-moons-impress.md | 5 ----- plugins/tech-insights/src/api/TechInsightsClient.ts | 6 ------ 2 files changed, 11 deletions(-) delete mode 100644 .changeset/poor-moons-impress.md diff --git a/.changeset/poor-moons-impress.md b/.changeset/poor-moons-impress.md deleted file mode 100644 index f441cba1f2..0000000000 --- a/.changeset/poor-moons-impress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@backstage/plugin-tech-insights': patch ---- - -Set content type to 'application/json' in TechInsightsClient diff --git a/plugins/tech-insights/src/api/TechInsightsClient.ts b/plugins/tech-insights/src/api/TechInsightsClient.ts index 0f55a8f8e1..6e85769b34 100644 --- a/plugins/tech-insights/src/api/TechInsightsClient.ts +++ b/plugins/tech-insights/src/api/TechInsightsClient.ts @@ -82,9 +82,6 @@ export class TechInsightsClient implements TechInsightsApi { { method: 'POST', body: JSON.stringify(requestBody), - headers: { - 'content-type': 'application/json', - }, }, ); } @@ -101,9 +98,6 @@ export class TechInsightsClient implements TechInsightsApi { return this.api('/checks/run', { method: 'POST', body: JSON.stringify(requestBody), - headers: { - 'content-type': 'application/json', - }, }); }