From 1de810824abf5cf6fe2b75181c46f1ebb1e38200 Mon Sep 17 00:00:00 2001 From: Dovydas Joksas Date: Mon, 17 Jan 2022 06:44:52 +0000 Subject: [PATCH] Remove `application/srt` alias from Srt --- supported_mimes.md | 2 +- tree.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/supported_mimes.md b/supported_mimes.md index 300ce106..b966a4fd 100644 --- a/supported_mimes.md +++ b/supported_mimes.md @@ -163,7 +163,7 @@ Extension | MIME type | Aliases **.har** | application/json | - **.ndjson** | application/x-ndjson | - **.rtf** | text/rtf | - -**.srt** | text/x-subrip | text/x-srt, application/srt +**.srt** | text/x-subrip | text/x-srt **.tcl** | text/x-tcl | application/x-tcl **.csv** | text/csv | - **.tsv** | text/tab-separated-values | - diff --git a/tree.go b/tree.go index 46b1f2cc..6f8578e1 100644 --- a/tree.go +++ b/tree.go @@ -88,7 +88,7 @@ var ( php = newMIME("text/x-php", ".php", magic.Php) rtf = newMIME("text/rtf", ".rtf", magic.Rtf) srt = newMIME("text/x-subrip", ".srt", magic.Srt). - alias("text/x-srt", "application/srt") + alias("text/x-srt") js = newMIME("application/javascript", ".js", magic.Js). alias("application/x-javascript", "text/javascript") lua = newMIME("text/x-lua", ".lua", magic.Lua)