From: Paul Hänsch Date: Sun, 22 Jul 2018 13:32:13 +0000 (+0200) Subject: implement mp4 file type faking X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=8e1a0fc78a77d3baa0adf3038536fb49926362b2;p=serve0 implement mp4 file type faking --- 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