From 72eb6a6271d722a8e06bf2f916c62f72f333c3be Mon Sep 17 00:00:00 2001 From: Henri Dickson <90480431+alphatownsman@users.noreply.github.com> Date: Mon, 5 Feb 2024 21:40:04 -0500 Subject: [PATCH] add application/activity+json to accept header to improve compatibility (#694) --- core/signatures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/signatures.py b/core/signatures.py index bf0690d..798a781 100644 --- a/core/signatures.py +++ b/core/signatures.py @@ -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()