From 17678752531e0d7d935064405015f1e97d3f1f36 Mon Sep 17 00:00:00 2001 From: BalazsManus Date: Sat, 1 Mar 2025 20:25:21 +0100 Subject: [PATCH] this may get the job done --- refilc/lib/api/client.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/refilc/lib/api/client.dart b/refilc/lib/api/client.dart index bad5443a..9d926bde 100644 --- a/refilc/lib/api/client.dart +++ b/refilc/lib/api/client.dart @@ -259,7 +259,8 @@ class FilcAPI { http.Response res = await http.post( Uri.parse(themeShare), body: theme.json, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + // why tf would you urlencode a json, u want to parse it 2 times or what? + headers: {'Content-Type': 'application/json'}, ); // if (res.statusCode != 201) { @@ -322,7 +323,7 @@ class FilcAPI { http.Response res = await http.post( Uri.parse(gradeColorsShare), body: gradeColors.json, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + headers: {'Content-Type': 'application/json'}, ); // if (res.statusCode != 201) {