kopia lustrzana https://gitlab.com/marnanel/chapeau
sombrero's fake HttpRequest for ACTIVITY_GET requests supplies an Accept header.
Otherwise it doesn't get routed to the right view now that we route based on Accept.merge-requests/2/merge
rodzic
0b98be76c4
commit
ac9fb3d2bf
|
@ -127,6 +127,10 @@ def _fetch_local_by_url(address, wanted):
|
|||
as an ACTIVITY_GET method.
|
||||
"""
|
||||
|
||||
headers = {
|
||||
'Accept': 'application/activity+json',
|
||||
}
|
||||
|
||||
def __init__(self, path):
|
||||
super().__init__()
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue