Fix image format detection for upper case extensions, e.g. JPG
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 30 Jul 2019 06:53:50 +0000 (08:53 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 30 Jul 2019 06:53:50 +0000 (08:53 +0200)
commitc62bbf7b11d68d52ef11a4c6c70660914c473d08
tree16788afdd6c001d087a7c4ea0bb1452b744c138b
parent00a238e32c82b0651e4145e306840cffa46e535d
Fix image format detection for upper case extensions, e.g. JPG

This regression was introduced in 0.56.0.

Fixes #6137
resources/image_test.go
resources/resource.go
resources/testdata/sunrise.JPG [new file with mode: 0644]