Skip to content

Commit

Permalink
update to 3.21.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jonataslaw committed Nov 30, 2020
1 parent 5d019b4 commit 7c79af5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [3.21.2]
- Fix GetConnect.request returning a PUT request

## [3.21.1]
- Allow null body to POST method on GetConnect

Expand Down
3 changes: 2 additions & 1 deletion lib/get_connect/connect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ class GetConnect extends GetConnectInterface {
Decoder<T> decoder,
}) {
_checkIfDisposed();
return httpClient.put(
return httpClient.request(
url,
method,
body: body,
headers: headers,
contentType: contentType,
Expand Down
2 changes: 1 addition & 1 deletion lib/get_connect/http/src/http.dart
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class GetHttpClient {
Future<Response<T>> request<T>(
String url,
String method, {
Map<String, dynamic> body,
dynamic body,
String contentType,
Map<String, String> headers,
Map<String, dynamic> query,
Expand Down
2 changes: 2 additions & 0 deletions lib/get_navigation/src/root/get_cupertino_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ class GetCupertinoApp extends StatelessWidget {
settings: RouteSettings(name: name, arguments: null),
curve: unknownRoute.curve,
opaque: unknownRoute.opaque,
routeName: unknownRoute.name,
customTransition: unknownRoute.customTransition,
binding: unknownRoute.binding,
bindings: unknownRoute.bindings,
Expand All @@ -223,6 +224,7 @@ class GetCupertinoApp extends StatelessWidget {
settings: RouteSettings(name: name, arguments: null),
curve: match.route.curve,
opaque: match.route.opaque,
routeName: match.route.name,
binding: match.route.binding,
bindings: match.route.bindings,
transitionDuration:
Expand Down
2 changes: 2 additions & 0 deletions lib/get_navigation/src/root/get_material_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ class GetMaterialApp extends StatelessWidget {
settings: RouteSettings(name: name, arguments: null),
curve: unknownRoute.curve,
opaque: unknownRoute.opaque,
routeName: unknownRoute.name,
customTransition: unknownRoute.customTransition,
binding: unknownRoute.binding,
bindings: unknownRoute.bindings,
Expand All @@ -235,6 +236,7 @@ class GetMaterialApp extends StatelessWidget {
curve: match.route.curve,
opaque: match.route.opaque,
binding: match.route.binding,
routeName: match.route.name,
bindings: match.route.bindings,
transitionDuration:
(match.route.transitionDuration ?? Get.defaultTransitionDuration),
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: get
description: Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with GetX.
version: 3.21.1
version: 3.21.2
homepage: https://github.com/jonataslaw/getx

environment:
Expand Down

0 comments on commit 7c79af5

Please sign in to comment.