From 8e1a0fc78a77d3baa0adf3038536fb49926362b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sun, 22 Jul 2018 15:32:13 +0200 Subject: [PATCH] implement mp4 file type faking --- index.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.cgi b/index.cgi index 8359b63..8f21c83 100755 --- a/index.cgi +++ b/index.cgi @@ -56,7 +56,8 @@ elif [ -f "$_DATA/$ITEM" ]; then delete) ;; *) . "$_EXEC/cgilite/file.sh" - FILE "$_DATA/$ITEM" + fakemp4="$(COOKIE fakemp4)" + FILE "$_DATA/$ITEM" "$([ "$fakemp4" = yes ] && printf 'video/mp4')" ;; esac elif [ -d "$_DATA/$ITEM" ]; then -- 2.39.2