Skip to content

Commit

Permalink
v1.4.1 - Pass Content-Type header when submitting feedback, fixes api…
Browse files Browse the repository at this point in the history
… post in Android
  • Loading branch information
Anwardo committed Dec 22, 2020
1 parent d1cbccc commit 85e0d76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.4.1
- Pass Content-Type header when submitting feedback, fixes api post in Android

# 1.4.0
- Implement `fireWhenReady` prop
- Document `modalAnimationDuration` prop
Expand Down
3 changes: 2 additions & 1 deletion api/feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export const feedback = {
body: JSON.stringify(feedback),
headers: {
token: feedback.token,
domain: feedback.domain
domain: feedback.domain,
'Content-Type': 'application/json'
}
};
return fetch(url, data)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mopinion-react-native-sdk",
"description": "Collect in-app feedback with Mopinion for React Native. Built fully in React Native for optimal integration with your RN app.",
"version": "1.4.0",
"version": "1.4.1",
"devDependencies": {
"babel-preset-react-native-stage-0": "^1.0.1",
"react-devtools": "^3.2.1",
Expand Down

0 comments on commit 85e0d76

Please sign in to comment.