Skip to content

Commit

Permalink
Undo
Browse files Browse the repository at this point in the history
  • Loading branch information
Seven Du committed Dec 22, 2023
1 parent 25d480f commit e29c719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/http/lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ String mapToQuery(Map<String, String> map, {required Encoding encoding}) =>
///
/// Returns [fallback] if [charset] is null or if no [Encoding] was found that
/// corresponds to [charset].
Encoding encodingForCharset(String? charset, [Encoding fallback = utf8]) {
Encoding encodingForCharset(String? charset, [Encoding fallback = latin1]) {
if (charset == null) return fallback;
return Encoding.getByName(charset) ?? fallback;
}
Expand Down

0 comments on commit e29c719

Please sign in to comment.