mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 06:03:51 +03:00
Update modules/typesniffer/typesniffer.go
Typo
This commit is contained in:
parent
01e1bc0cb8
commit
eef6d55877
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ func DetectContentType(data []byte) SniffedType {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// AVIF is unsuported by http.DetectContentType
|
// AVIF is unsupported by http.DetectContentType
|
||||||
// Signature taken from https://stackoverflow.com/a/68322450
|
// Signature taken from https://stackoverflow.com/a/68322450
|
||||||
if bytes.Index(data, []byte("ftypavif")) == 4 {
|
if bytes.Index(data, []byte("ftypavif")) == 4 {
|
||||||
ct = AvifMimeType
|
ct = AvifMimeType
|
||||||
|
|
Loading…
Reference in a new issue