mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 09:59:18 +02:00
Fix #1065: irrelevant redirection to HTML repr of a library
This commit is contained in:
parent
5bb9112a09
commit
0b06ef3b3b
2 changed files with 6 additions and 0 deletions
|
@ -215,6 +215,7 @@ def should_redirect_ap_to_html(accept_header, default=True):
|
|||
"text/html",
|
||||
]
|
||||
no_redirect_headers = [
|
||||
"*/*", # XXX backward compat with older Funkwhale instances that don't send the Accept header
|
||||
"application/json",
|
||||
"application/activity+json",
|
||||
"application/ld+json",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue