Skip to content

Commit

Permalink
πŸ”€ Merge pull request #9 from Fedodo/dev
Browse files Browse the repository at this point in the history
πŸ› Added Accept header
  • Loading branch information
LNA-DEV authored Jul 4, 2023
2 parents 5bb683c + 0076196 commit 548dbf2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lib/APIs/outbox_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 548dbf2

Please sign in to comment.