From 74042dee06881cc10353ea39af24b8c695f1b10e Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Sat, 20 Jul 2024 15:01:52 +0200 Subject: [PATCH] fix: Remove charset from application/json content type Per https://datatracker.ietf.org/doc/html/rfc8259, application/json does not have a charset parameter --- .../org/joinmastodon/android/api/JsonObjectRequestBody.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/api/JsonObjectRequestBody.java b/mastodon/src/main/java/org/joinmastodon/android/api/JsonObjectRequestBody.java index b1f417fd..5e063eb3 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/api/JsonObjectRequestBody.java +++ b/mastodon/src/main/java/org/joinmastodon/android/api/JsonObjectRequestBody.java @@ -20,7 +20,7 @@ public class JsonObjectRequestBody extends RequestBody{ @Override public MediaType contentType(){ - return MediaType.get("application/json;charset=utf-8"); + return MediaType.get("application/json"); } @Override