Skip to content

Commit

Permalink
Allow jxl based on Accept
Browse files Browse the repository at this point in the history
  • Loading branch information
n0vad3v committed Apr 10, 2024
1 parent 8c15bf3 commit 98a36be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ func GuessSupportedFormat(header *fasthttp.RequestHeader) map[string]bool {
if strings.Contains(accept, "image/avif") {
supported["avif"] = true
}
if strings.Contains(accept, "image/jxl") {
supported["jxl"] = true
}

supportedWebPs := []string{"iPhone OS 14", "CPU OS 14", "iPhone OS 15", "CPU OS 15", "iPhone OS 16", "CPU OS 16", "iPhone OS 17", "CPU OS 17"}
for _, version := range supportedWebPs {
Expand Down

0 comments on commit 98a36be

Please sign in to comment.