Skip to content

Commit

Permalink
fix: decode queryParams if any special character (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
SyifaAinnur authored Sep 14, 2024
1 parent 149ad49 commit d28a833
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/models/api_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ class ApiResponse {
// Construct the full URL manually
final queryParams = queryParameters.isNotEmpty
? queryParameters.entries.map((e) {
final key = Uri.encodeComponent(e.key);
final value = Uri.encodeComponent(e.value.toString());
final key = Uri.decodeComponent(e.key);
final value = Uri.decodeComponent(e.value.toString());
return '$key=$value';
}).join('&')
: '';
Expand Down

0 comments on commit d28a833

Please sign in to comment.