- "Accept" is not being accepted by misskey (gladly only these instances)
- it must be "Content-Type: application/json" or otherwise it is blocked
# 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