Skip to content

Commit

Permalink
Added json header
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobaraujo7 committed May 15, 2023
1 parent 342b62a commit 34a2d68
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## V1.1.8

- Added json header;

## V1.1.7

- Dart 3 support;
Expand Down
4 changes: 4 additions & 0 deletions lib/src/presenter/uno_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,10 @@ class _Uno implements Uno {
}
} else {
value = jsonEncode(data);
_headers.addAll({
'accept': 'application/json',
'Content-Type': 'application/json',
});
}

final bytes = utf8.encode(value);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: uno
description: Uno is a multiplatform HTTP client, based on Axios and built following the Clean Dart approach by the Flutterando Community.
version: 1.1.7
version: 1.1.8
homepage: https://github.com/Flutterando/uno.git

environment:
Expand Down

0 comments on commit 34a2d68

Please sign in to comment.