]> git.mxchange.org Git - fba.git/commitdiff
Partly reverted cdcd2b0109e126bca887d0712a7ddf602e5d6e62:
authorRoland Häder <roland@mxchange.org>
Wed, 26 Jul 2023 14:22:34 +0000 (16:22 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 26 Jul 2023 14:22:34 +0000 (16:22 +0200)
- "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

index 0b68f95c6a260e2655f9ee3c020269efde5fb36d..5f3e19e692d502c6c8c708b26b50b6ca98a35b98 100644 (file)
@@ -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