From c481a9f1b6b2ca623e554289a2f08959ce407a11 Mon Sep 17 00:00:00 2001 From: RemRem Date: Thu, 1 Dec 2022 20:31:47 +0100 Subject: [PATCH] add headers --- lib/api/api.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/api/api.dart b/lib/api/api.dart index d49aebf..18de031 100644 --- a/lib/api/api.dart +++ b/lib/api/api.dart @@ -124,6 +124,7 @@ class API { static Future getAllUsers(Request req) async { PostgreSQLResult res = await AccountsToPostgres.getAllUsers(); String json = DB2API.allUsersToJson(res); - return Response.ok(json); + return Response.ok(json, + headers: {'Content-Type': 'application/json;charset=utf-8'}); } }