From 0076196c575cfe219ecf6faeafbd89cfb4168d14 Mon Sep 17 00:00:00 2001 From: Lukas Nagel Date: Tue, 4 Jul 2023 07:19:02 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Added=20Accept=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/APIs/outbox_api.dart | 7 ++++++- pubspec.yaml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/APIs/outbox_api.dart b/lib/APIs/outbox_api.dart index ce813e2..fbd3173 100644 --- a/lib/APIs/outbox_api.dart +++ b/lib/APIs/outbox_api.dart @@ -17,9 +17,14 @@ class OutboxAPI { http.Response pageResponse = await http.get( outboxUri, - headers: {"Content-Type": "application/json"}, + headers: { + "Content-Type": "application/json", + "Accept": "application/json", + }, ); + Config.logger.d("Response-Headers: ${pageResponse.headers}"); + OrderedPagedCollection collection = OrderedPagedCollection.fromJson( jsonDecode(utf8.decode(pageResponse.bodyBytes))); diff --git a/pubspec.yaml b/pubspec.yaml index 292b079..9788ee3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: activitypub description: A library for the ActivityPub standard. Created an also used by Fedodo. -version: 1.2.2 +version: 1.2.3 repository: https://github.com/Fedodo/Fedodo.Pub.ActivityPub environment: