diff options
author | Sean Liao <sean@liao.dev> | 2022-04-18 11:02:26 +0100 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2022-04-20 21:51:06 +0000 |
commit | 8b364451e2e2f2f816ed877a4639d9342279f299 (patch) | |
tree | 85f95885609f52bd039b505f842bbc59915b7a0c | |
parent | e49b80a754c3df1a82d089a16a46ea8946d5a00b (diff) | |
download | go-8b364451e2e2f2f816ed877a4639d9342279f299.tar.gz go-8b364451e2e2f2f816ed877a4639d9342279f299.zip |
net/http: drop mimesniff for audio/basic
The WHATWG Mime Sniffing Standard we follow dropped support for
.snd / audio/basic.
https://github.com/whatwg/mimesniff/issues/151
Change-Id: Iae1bd8b29063b06b5b3909a944e12ead5974a526
Reviewed-on: https://go-review.googlesource.com/c/go/+/400754
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Auto-Submit: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
-rw-r--r-- | src/net/http/sniff.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/net/http/sniff.go b/src/net/http/sniff.go index 67a7151b0cc..ac18ab979d0 100644 --- a/src/net/http/sniff.go +++ b/src/net/http/sniff.go @@ -129,11 +129,6 @@ var sniffSignatures = []sniffSig{ // Enforce the pattern match ordering as prescribed in // https://mimesniff.spec.whatwg.org/#matching-an-audio-or-video-type-pattern &maskedSig{ - mask: []byte("\xFF\xFF\xFF\xFF"), - pat: []byte(".snd"), - ct: "audio/basic", - }, - &maskedSig{ mask: []byte("\xFF\xFF\xFF\xFF\x00\x00\x00\x00\xFF\xFF\xFF\xFF"), pat: []byte("FORM\x00\x00\x00\x00AIFF"), ct: "audio/aiff", |