Verified Commit 0b06ef3b authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fix #1065: irrelevant redirection to HTML repr of a library

parent 5bb9112a
......@@ -215,6 +215,7 @@ def should_redirect_ap_to_html(accept_header, default=True):
no_redirect_headers = [
"*/*", # XXX backward compat with older Funkwhale instances that don't send the Accept header
......@@ -371,6 +371,11 @@ def test_music_upload_detail_private_approved_follow(
("text/html,application/xhtml+xml", True, True),
("text/html,application/json", True, True),
("", True, False),
), # XXX: compat with older versions of Funkwhale that miss the Accept header
(None, True, False),
("application/json", True, False),
("application/activity+json", True, False),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment