mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 00:15:11 +01:00
fix (favicon): missing mime for ms favicon
This commit is contained in:
parent
118f17724b
commit
1d1bad001b
1 changed files with 2 additions and 0 deletions
|
|
@ -236,6 +236,8 @@ func (this Register) Favicon(binary []byte) {
|
|||
favicon.mime = "image/x-icon"
|
||||
} else if bytes.HasPrefix(binary, []byte{0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A}) {
|
||||
favicon.mime = "image/png"
|
||||
} else if bytes.HasPrefix(binary, []byte{0x47, 0x49, 0x46, 0x38}) {
|
||||
favicon.mime = "image/vnd.microsoft.icon"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue