Skip to content

Commit

Permalink
added optional encoding parameter to DELETE method
Browse files Browse the repository at this point in the history
  • Loading branch information
j4nk3e committed Aug 23, 2020
1 parent 1bfca23 commit 30779f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/base_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ abstract class BaseClient implements Client {
_sendUnstreamed('PATCH', url, headers, body, encoding);

@override
Future<Response> delete(url, {Map<String, String> headers, body}) =>
_sendUnstreamed('DELETE', url, headers);
Future<Response> delete(url,
{Map<String, String> headers, body, Encoding encoding}) =>
_sendUnstreamed('DELETE', url, headers, encoding);

@override
Future<String> read(url, {Map<String, String> headers}) async {
Expand Down

0 comments on commit 30779f1

Please sign in to comment.