Mercurial > libervia-backend
diff libervia/backend/plugins/plugin_comp_ap_gateway/__init__.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 | c3b68fdc2de7 |
children | a1f7040b5a15 |
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_comp_ap_gateway/__init__.py Thu Jul 06 11:34:51 2023 +0200 +++ b/libervia/backend/plugins/plugin_comp_ap_gateway/__init__.py Thu Jul 06 11:34:52 2023 +0200 @@ -377,7 +377,6 @@ url, headers = { "Accept": [MEDIA_TYPE_AP], - "Content-Type": [MEDIA_TYPE_AP], } ) if resp.code >= 300: @@ -1345,7 +1344,7 @@ "Digest": digest } headers["Content-Type"] = ( - 'application/activity+json' + MEDIA_TYPE_AP ) headers, __ = self.get_signature_data(self.get_key_id(actor_id), headers)