OkhttpCacheDataSource 支持设置请求头

pull/1296/head
ag2s20150909 3 years ago
parent dd32d433bc
commit 9c67459105
  1. 7
      app/src/main/java/io/legado/app/help/OkhttpCacheDataSource.java

@ -170,6 +170,13 @@ public final class OkhttpCacheDataSource implements DataSource {
return this;
}
public Factory setDefaultRequestProperties(Map<String, String> defaultRequestProperties){
if (this.upstreamDataSourceFactory != null) {
this.upstreamDataSourceFactory.setDefaultRequestProperties(defaultRequestProperties);
}
return this;
}
/**
* Sets an optional {@link PriorityTaskManager} to use when requesting data from upstream.
*

Loading…
Cancel
Save