See #170: fetching remote objects
This commit is contained in:
parent
65097f6297
commit
c2eeee5eb1
30 changed files with 1175 additions and 171 deletions
|
|
@ -82,7 +82,7 @@ class Command(BaseCommand):
|
|||
content = models.Activity.objects.get(uuid=input).payload
|
||||
elif is_url(input):
|
||||
response = session.get_session().get(
|
||||
input, headers={"Content-Type": "application/activity+json"},
|
||||
input, headers={"Accept": "application/activity+json"},
|
||||
)
|
||||
response.raise_for_status()
|
||||
content = response.json()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue