set application/json header

Signed-off-by: Alex Rybchenko <arybchenko@box.com>
This commit is contained in:
Alex Rybchenko
2022-10-19 14:13:56 +02:00
parent cf824542d0
commit 47ec8b88d5
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-tech-insights': patch
---
Set content type to 'application/json' in TechInsightsClient
@@ -82,6 +82,9 @@ export class TechInsightsClient implements TechInsightsApi {
{
method: 'POST',
body: JSON.stringify(requestBody),
headers: {
'content-type': 'application/json',
},
},
);
}
@@ -98,6 +101,9 @@ export class TechInsightsClient implements TechInsightsApi {
return this.api('/checks/run', {
method: 'POST',
body: JSON.stringify(requestBody),
headers: {
'content-type': 'application/json',
},
});
}