Skip to content

Commit

Permalink
fix decoding missing response header
Browse files Browse the repository at this point in the history
  • Loading branch information
FaFre committed Jun 6, 2024
1 parent 3645739 commit 598f721
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/lib/features/kagi/data/services/chat.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:convert';

import 'package:bang_navigator/core/http_error_handler.dart';
import 'package:bang_navigator/features/settings/data/repositories/settings_repository.dart';
import 'package:exceptions/exceptions.dart';
Expand All @@ -24,7 +26,7 @@ class KagiChatService extends _$KagiChatService {
final response = await _client
.get(url.replace(queryParameters: {'token': kagiSession}));

return response.body;
return utf8.decode(response.bodyBytes);
},
exceptionHandler: handleHttpError,
);
Expand Down

0 comments on commit 598f721

Please sign in to comment.