mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 09:49:23 +02:00
See #170: fetching remote objects
This commit is contained in:
parent
65097f6297
commit
c2eeee5eb1
30 changed files with 1173 additions and 169 deletions
|
@ -21,7 +21,7 @@ class SignatureAuthFactory(factory.Factory):
|
|||
key = factory.LazyFunction(lambda: keys.get_key_pair()[0])
|
||||
key_id = factory.Faker("url")
|
||||
use_auth_header = False
|
||||
headers = ["(request-target)", "user-agent", "host", "date", "content-type"]
|
||||
headers = ["(request-target)", "user-agent", "host", "date", "accept"]
|
||||
|
||||
class Meta:
|
||||
model = requests_http_signature.HTTPSignatureAuth
|
||||
|
@ -42,7 +42,7 @@ class SignedRequestFactory(factory.Factory):
|
|||
"User-Agent": "Test",
|
||||
"Host": "test.host",
|
||||
"Date": http_date(timezone.now().timestamp()),
|
||||
"Content-Type": "application/activity+json",
|
||||
"Accept": "application/activity+json",
|
||||
}
|
||||
if extracted:
|
||||
default_headers.update(extracted)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue