mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[artwork] Be more forgiving towards incorrect mime content-types
This commit is contained in:
parent
aaadc28001
commit
bb434297ca
@ -440,9 +440,9 @@ artwork_read_byurl(struct evbuffer *evbuf, const char *url)
|
||||
}
|
||||
|
||||
content_type = keyval_get(kv, "Content-Type");
|
||||
if (content_type && (strcmp(content_type, "image/jpeg") == 0))
|
||||
if (content_type && (strcasecmp(content_type, "image/jpeg") == 0 || strcasecmp(content_type, "image/jpg") == 0))
|
||||
ret = ART_FMT_JPEG;
|
||||
else if (content_type && (strcmp(content_type, "image/png") == 0))
|
||||
else if (content_type && strcasecmp(content_type, "image/png") == 0)
|
||||
ret = ART_FMT_PNG;
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user