mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
manual types should support octet-stream and force-download response
This commit is contained in:
@@ -410,7 +410,13 @@ class FSResourcesHandler(FSHandler):
|
||||
) as response:
|
||||
if response.status_code == status.HTTP_200_OK:
|
||||
if not _check_content_type(
|
||||
response, ("application/pdf",), "manual"
|
||||
response,
|
||||
(
|
||||
"application/pdf",
|
||||
"application/force-download",
|
||||
"application/octet-stream",
|
||||
),
|
||||
"manual",
|
||||
):
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user