summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMartin Fietz <Martin.Fietz@gmail.com>2016-05-13 09:51:02 +0200
committerMartin Fietz <Martin.Fietz@gmail.com>2016-05-13 18:02:27 +0200
commit8ee15a150e824305a256ed5308dd63acfedb2a52 (patch)
tree79d05a99ad9df74de5e993ff84487693d10364dd /core
parent0171b5eb59b117fc21baeb1f2633035bfa824605 (diff)
downloadAntennaPod-8ee15a150e824305a256ed5308dd63acfedb2a52.zip
Accept media content type application/octet-stream
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/service/download/HttpDownloader.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/download/HttpDownloader.java b/core/src/main/java/de/danoeh/antennapod/core/service/download/HttpDownloader.java
index cb0f8f1ea..556c008d4 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/service/download/HttpDownloader.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/service/download/HttpDownloader.java
@@ -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;
}