Merge pull request #1939 from mfietz/issue/1937-content-type

Accept media content type application/octet-stream
This commit is contained in:
Tom Hennen 2016-05-13 12:43:17 -04:00
commit fd58baad4e
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;
}