aboutsummaryrefslogtreecommitdiff
path: root/_wui
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-11-15 00:39:24 +0700
committerShulhan <ms@kilabit.info>2023-11-15 02:26:52 +0700
commitfeeb3edf9bf8f914dc263de3bb661914b409da6c (patch)
treef627221d81b1d7c06cb8238fd6ddee1e5b192e42 /_wui
parent44c2bb98bfbb2921b84d11cdd863ccf9013581db (diff)
downloadawwan-feeb3edf9bf8f914dc263de3bb661914b409da6c.tar.xz
_wui: allow opening file with content type as "octet-stream"
Most file with this type is binary, we allow it to see if its file has content or not.
Diffstat (limited to '_wui')
-rw-r--r--_wui/awwan.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/_wui/awwan.ts b/_wui/awwan.ts
index 9cf6fb7..fa2ec1d 100644
--- a/_wui/awwan.ts
+++ b/_wui/awwan.ts
@@ -343,6 +343,7 @@ export class Awwan {
node.content_type &&
(node.content_type.indexOf("json") >= 0 ||
node.content_type.indexOf("message") >= 0 ||
+ node.content_type.indexOf("octet-stream") >= 0 ||
node.content_type.indexOf("script") >= 0 ||
node.content_type.indexOf("text") >= 0 ||
node.content_type.indexOf("xml") >= 0)