add application/activity+json to accept header to improve compatibility (#694)

This commit is contained in:
Henri Dickson 2024-02-05 21:40:04 -05:00 committed by GitHub
parent b2223ddf42
commit 72eb6a6271
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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