Merge branch '1065-scanning-issue' into 'develop'
Fix #1065: irrelevant redirection to HTML repr of a library Closes #1065 See merge request funkwhale/funkwhale!1069
This commit is contained in:
commit
4459f3ebc1
|
@ -215,6 +215,7 @@ def should_redirect_ap_to_html(accept_header, default=True):
|
||||||
"text/html",
|
"text/html",
|
||||||
]
|
]
|
||||||
no_redirect_headers = [
|
no_redirect_headers = [
|
||||||
|
"*/*", # XXX backward compat with older Funkwhale instances that don't send the Accept header
|
||||||
"application/json",
|
"application/json",
|
||||||
"application/activity+json",
|
"application/activity+json",
|
||||||
"application/ld+json",
|
"application/ld+json",
|
||||||
|
|
|
@ -371,6 +371,11 @@ def test_music_upload_detail_private_approved_follow(
|
||||||
("text/html,application/xhtml+xml", True, True),
|
("text/html,application/xhtml+xml", True, True),
|
||||||
("text/html,application/json", True, True),
|
("text/html,application/json", True, True),
|
||||||
("", True, False),
|
("", True, False),
|
||||||
|
(
|
||||||
|
"*/*",
|
||||||
|
True,
|
||||||
|
False,
|
||||||
|
), # XXX: compat with older versions of Funkwhale that miss the Accept header
|
||||||
(None, True, False),
|
(None, True, False),
|
||||||
("application/json", True, False),
|
("application/json", True, False),
|
||||||
("application/activity+json", True, False),
|
("application/activity+json", True, False),
|
||||||
|
|
Loading…
Reference in New Issue