From af9ee3fd20127f07168cf74417b2af5426211841 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 26 Jul 2023 16:22:34 +0200 Subject: [PATCH] Partly reverted cdcd2b0109e126bca887d0712a7ddf602e5d6e62: - "Accept" is not being accepted by misskey (gladly only these instances) - it must be "Content-Type: application/json" or otherwise it is blocked --- fba/http/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fba/http/network.py b/fba/http/network.py index 0b68f95..5f3e19e 100644 --- a/fba/http/network.py +++ b/fba/http/network.py @@ -39,8 +39,8 @@ web_headers = { # HTTP headers for API requests api_headers = { - "User-Agent": config.get("useragent"), - "Accept" : "application/json;application/jrd+json,application/activity+json;charset=utf-8,application/xml;q=0.9,*/*;q=0.8", + "User-Agent" : config.get("useragent"), + "Content-Type": "application/json", } # Exceptions to always catch -- 2.39.5