Skip to content

Commit

Permalink
fix(jira-api): add content type json header (AxisCommunications#106)
Browse files Browse the repository at this point in the history
Co-authored-by: Niklas Aronsson <[email protected]>
  • Loading branch information
anicke and Niklas Aronsson authored Mar 22, 2024
1 parent c1ca33a commit f23bacd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-files-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@axis-backstage/plugin-jira-dashboard-backend': patch
---

added content type header to searchJira call
1 change: 1 addition & 0 deletions plugins/jira-dashboard-backend/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export const searchJira = async (
headers: {
Authorization: resolveJiraToken(config),
Accept: 'application/json',
'Content-Type': 'application/json',
},
}).then(resp => resp.json());
return response.issues;
Expand Down

0 comments on commit f23bacd

Please sign in to comment.