Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/rocket_client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@
* Fixed bug on `request` method

# 0.0.4
* Support request retry

* Support request retry

# 0.0.5

* Fix `Request with GET/HEAD method cannot have body` bug
2 changes: 1 addition & 1 deletion packages/rocket_client/lib/src/rocket_client_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class RocketClient {
String mapToParams = Uri(queryParameters: params ?? {}).query;
Uri url = Uri.parse("${this.url}/$endpoint?$mapToParams");
Request request = Request(method.name, url);
request.body = json.encode(data);
if (data != null) request.body = json.encode(data);
request.headers.addAll(headers);
final client = Client();
final retryClient = RetryClient(client,
Expand Down
2 changes: 1 addition & 1 deletion packages/rocket_client/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: rocket_client
description: for making HTTP requests and handling responses.
version: 0.0.4
version: 0.0.5
repository: https://github.com/JahezAcademy/flutter_rocket/tree/dev/packages/rocket_client
issue_tracker: https://github.com/JahezAcademy/flutter_rocket/labels/rocket_client
homepage: https://github.com/JahezAcademy/flutter_rocket
Expand Down
Loading