add application/activity+json to accept header to improve compatibility

This commit is contained in:
Henri Dickson 2024-01-30 03:44:06 -05:00
parent f86f3a49e4
commit 9538830a42

View file

@ -219,7 +219,7 @@ class HttpSignature:
body_bytes = b""
# GET requests get implicit accept headers added
if method == "get":
headers["Accept"] = "application/ld+json"
headers["Accept"] = "application/activity+json,application/ld+json"
# Sign the headers
signed_string = "\n".join(
f"{name.lower()}: {value}" for name, value in headers.items()