ensuring datasource is build with headers
This commit is contained in:
parent
db1d83b83e
commit
5c8e1bd6d4
@ -49,7 +49,7 @@ public class DataSourceUtil {
|
||||
}
|
||||
|
||||
public static DataSource.Factory getDefaultDataSourceFactory(Context context, DefaultBandwidthMeter bandwidthMeter, Map<String, String> requestHeaders) {
|
||||
if (defaultDataSourceFactory == null) {
|
||||
if (defaultDataSourceFactory == null || !requestHeaders.isEmpty()) {
|
||||
defaultDataSourceFactory = buildDataSourceFactory(context, bandwidthMeter, requestHeaders);
|
||||
}
|
||||
return defaultDataSourceFactory;
|
||||
|
Loading…
Reference in New Issue
Block a user