Merge pull request #1939 from mfietz/issue/1937-content-type
Accept media content type application/octet-stream
This commit is contained in:
commit
fd58baad4e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue