Merge pull request #9952 from Bond-009/backportfix9503

fix for #9503
This commit is contained in:
Cody Robibero 2023-07-02 18:18:21 -06:00 committed by GitHub
commit 4f6edd9c3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,6 +181,10 @@ namespace MediaBrowser.Providers.Manager
{
contentType = "image/png";
}
else
{
throw new HttpRequestException("Invalid image received: contentType not set.", null, response.StatusCode);
}
}
// thetvdb will sometimes serve a rubbish 404 html page with a 200 OK code, because reasons...