diff --git a/src/activitystream/node.rs b/src/activitystream/node.rs index 6fe783a0..185ca8ae 100644 --- a/src/activitystream/node.rs +++ b/src/activitystream/node.rs @@ -111,7 +111,10 @@ impl From for Node { impl Node{ pub async fn fetch(&mut self) -> reqwest::Result<()> { if let Node::Link(link) = self { - *self = reqwest::get(link.href()) + *self = reqwest::Client::new() + .get(link.href()) + .header("Accept", "application/json") + .send() .await? .json::() .await?