Apply 1 suggestion(s) to 1 file(s)
authorIzalia Mae <2908-izalia@users.noreply.git.pleroma.social>
Sat, 5 Dec 2020 05:34:58 +0000 (05:34 +0000)
committerIzalia Mae <2908-izalia@users.noreply.git.pleroma.social>
Sat, 5 Dec 2020 05:34:58 +0000 (05:34 +0000)
relay/actor.py

index 4264cca..b45ee6f 100644 (file)
@@ -120,7 +120,7 @@ async def fetch_nodeinfo(domain):
     if not nodeinfo_url:
         return
 
-    nodeinfo_data = await fetch_actor(nodeinfo_url)
+    nodeinfo_data = await fetch_actor(nodeinfo_url, headers=headers)
     software = nodeinfo_data.get('software')
 
     return software.get('name') if software else None