mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 04:08:03 -06:00
Fixed wrong encodings
This commit is contained in:
@@ -116,7 +116,7 @@ class TimeoutClient implements BaseClient {
|
||||
Response _handle400Error(Response response) {
|
||||
if (response.statusCode == 400) {
|
||||
// try to parse contained error message, otherwise return response
|
||||
final JSON json = jsonDecode(response.body);
|
||||
final JSON json = jsonDecode(utf8.decode(response.bodyBytes));
|
||||
final Map<String, String> errorMessages = {};
|
||||
//TODO: This could be simplified, look at error message format of paperless-ngx
|
||||
for (final entry in json.entries) {
|
||||
|
||||
Reference in New Issue
Block a user