Add EhConfig for each request

This commit is contained in:
seven332 committed 2016-01-30 16:58:25 +08:00
1 parent 740ab2950c
commit 6b569ee82d
9 files changed
+71 -49

No files matched your search

@@ -16,14 +16,17 @@
package com.hippo.ehviewer.client;
import com.hippo.ehviewer.Settings;
import com.hippo.okhttp.ChromeRequestBuilder;
public class EhRequestBuilder extends ChromeRequestBuilder {
public EhRequestBuilder(String url) {
super(url);
this(url, Settings.getEhConfig());
}
public EhRequestBuilder(String url, EhConfig ehConfig) {
super(url);
tag(ehConfig);
}
}