Skip to content

Commit

Permalink
修正代理缓存cache的header问题
Browse files Browse the repository at this point in the history
  • Loading branch information
CarGuoSmall committed Aug 21, 2018
1 parent 63e1d91 commit e79f4d9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void onCacheAvailable(File cacheFile, String url, int percentsAvailable)
@Override
public void doCacheLogic(Context context, IMediaPlayer mediaPlayer, String originUrl, Map<String, String> header, File cachePath) {
String url = originUrl;
mMapHeadData = header;
if (url.startsWith("http") && !url.contains("127.0.0.1") && !url.contains(".m3u8")) {
HttpProxyCacheServer proxy = getProxy(context.getApplicationContext(), cachePath);
if (proxy != null) {
Expand Down

0 comments on commit e79f4d9

Please sign in to comment.