Accept media content type application/octet-stream

This commit is contained in:
Martin Fietz 2016-05-13 09:51:02 +02:00
parent 0171b5eb59
commit 8ee15a150e
1 changed files with 3 additions and 1 deletions

View File

@ -184,7 +184,9 @@ public class HttpDownloader extends Downloader {
if(request.getFeedfileType() == FeedMedia.FEEDFILETYPE_FEEDMEDIA) {
String contentType = response.header("Content-Type");
if(!contentType.startsWith("audio/") && !contentType.startsWith("video/")) {
Log.d(TAG, "content type: " + contentType);
if(!contentType.startsWith("audio/") && !contentType.startsWith("video/") &&
!contentType.equals("application/octet-stream")) {
onFail(DownloadError.ERROR_FILE_TYPE, null);
return;
}