From: Roland Häder Date: Wed, 26 Jul 2023 14:22:34 +0000 (+0200) Subject: Partly reverted cdcd2b0109e126bca887d0712a7ddf602e5d6e62: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=af9ee3fd20127f07168cf74417b2af5426211841;p=fba.git 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 --- 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