Skip to content

Commit

Permalink
🐛 fix Request.copyWith lose tag param (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwj1994 authored Mar 21, 2024
1 parent fd9747a commit 153f13e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chopper/lib/src/request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ base class Request extends http.BaseRequest with EquatableMixin {
List<PartValue>? parts,
bool? useBrackets,
bool? includeNullQueryVars,
Object? tag,
}) =>
Request(
method ?? this.method,
Expand All @@ -76,6 +77,7 @@ base class Request extends http.BaseRequest with EquatableMixin {
parts: parts ?? this.parts,
useBrackets: useBrackets ?? this.useBrackets,
includeNullQueryVars: includeNullQueryVars ?? this.includeNullQueryVars,
tag: tag ?? this.tag,
);

/// Builds a valid URI from [baseUrl], [url] and [parameters].
Expand Down

0 comments on commit 153f13e

Please sign in to comment.