Fixed bug that when sending data by Post

Signed-off-by: Alisson Fabiano <afabiano@eshopworld.com>
This commit is contained in:
Alisson Fabiano
2022-10-14 11:47:16 +01:00
parent 09dc3083a6
commit 7095e8bc03
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-tech-insights': minor
---
Fixed bug that when sending data by Post, the default context type used was `plain/text`
@@ -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',
},
});
}