mirror of
https://github.com/golang/go
synced 2024-11-24 06:20:02 -07:00
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>
This commit is contained in:
parent
e49b80a754
commit
8b364451e2
@ -128,11 +128,6 @@ var sniffSignatures = []sniffSig{
|
||||
// Audio and Video types
|
||||
// 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"),
|
||||
|
Loading…
Reference in New Issue
Block a user