Skip to content

Commit

Permalink
Merge pull request #129 from elorzafe/master
Browse files Browse the repository at this point in the history
Compatibility issue with UTF-8 charset
  • Loading branch information
powerful23 authored Jan 9, 2018
2 parents a3420c1 + 731ac93 commit fb2ed72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/aws-amplify-react-native/src/API/RestClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class RestClient {
}

if (init.body) {
libraryHeaders['content-type'] = 'application/json; charset=utf-8';
libraryHeaders['content-type'] = 'application/json; charset=UTF-8';
params.data = JSON.stringify(init.body);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/aws-amplify/src/API/RestClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class RestClient {
const extraParams = Object.assign({}, init);

if (extraParams.body) {
libraryHeaders['content-type'] = 'application/json; charset=utf-8';
libraryHeaders['content-type'] = 'application/json; charset=UTF-8';
params.data = JSON.stringify(extraParams.body);
}

Expand Down

0 comments on commit fb2ed72

Please sign in to comment.