Skip to content

Commit

Permalink
Fix: Post not add data
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobaraujo7 committed Jul 12, 2023
1 parent 34a2d68 commit 38e4216
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
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.9

- Fix: Post not add data;

## V1.1.8

- Added json header;
Expand Down
4 changes: 3 additions & 1 deletion lib/src/presenter/uno_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,9 @@ class _Uno implements Uno {
if (contentType.contains('x-www-form-urlencoded')) {
value = _encodeParamsToQueries(data.cast());
}
} else {
}

if (value.isEmpty) {
value = jsonEncode(data);
_headers.addAll({
'accept': 'application/json',
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.8
version: 1.1.9
homepage: https://github.com/Flutterando/uno.git

environment:
Expand Down

0 comments on commit 38e4216

Please sign in to comment.