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
Marnanel Thurman 2020-11-25 19:36:48 +00:00
rodzic 0b98be76c4
commit ac9fb3d2bf
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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__()