fix: add missing content-type header (#887)

* fix: add missing headers when commenting on an issue

* fix: more missing content-type headers in post requests
This commit is contained in:
Fallenbagel
2024-07-24 19:34:54 +05:00
committed by GitHub
parent 5cc4389825
commit 2be9c7dcc1
4 changed files with 15 additions and 0 deletions

View File

@@ -181,6 +181,9 @@ const IssueComment = ({
`/api/v1/issueComment/${comment.id}`,
{
method: 'PUT',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ message: values.newMessage }),
}
);