diff libervia/backend/plugins/plugin_comp_ap_gateway/constants.py @ 4109:7067b0d73183

component AP gateway: fix AP media type in GET and POST requests headers
author Goffi <goffi@goffi.org>
date Thu, 06 Jul 2023 11:34:52 +0200
parents ec9bed9df74f
children 0d7bb4df2343
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_comp_ap_gateway/constants.py	Thu Jul 06 11:34:51 2023 +0200
+++ b/libervia/backend/plugins/plugin_comp_ap_gateway/constants.py	Thu Jul 06 11:34:52 2023 +0200
@@ -35,7 +35,8 @@
 TYPE_EVENT = "Event"
 TYPE_JOIN = "Join"
 TYPE_LEAVE = "Leave"
-MEDIA_TYPE_AP = "application/activity+json"
+MEDIA_TYPE_AP = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'
+MEDIA_TYPE_AP_ALT = "application/activity+json"
 NS_AP = "https://www.w3.org/ns/activitystreams"
 NS_AP_PUBLIC = f"{NS_AP}#Public"
 # 3 values can be used, see https://www.w3.org/TR/activitypub/#public-addressing