Skip to content

Commit 21fea6f

Browse files
Update modules/typesniffer/typesniffer.go
Co-authored-by: silverwind <[email protected]>
1 parent 1823f64 commit 21fea6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/typesniffer/typesniffer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ func (ct SniffedType) GetMimeType() string {
8383
return strings.SplitN(ct.contentType, ";", 2)[0]
8484
}
8585

86+
// https://en.wikipedia.org/wiki/ISO_base_media_file_format#File_type_box
8687
func detectFileTypeBox(data []byte) (brands []string, found bool) {
8788
if len(data) < 12 {
8889
return nil, false

0 commit comments

Comments
 (0)