Remove token, use ETag to prevent multiple queries

This commit is contained in:
topjohnwu
2017-01-11 17:37:35 +08:00
parent 5363b0f810
commit 61e2c3444a
6 changed files with 60 additions and 51 deletions
@@ -4,7 +4,7 @@ import android.content.Context;
import com.topjohnwu.magisk.R;
import com.topjohnwu.magisk.utils.Logger;
import com.topjohnwu.magisk.utils.WebRequest;
import com.topjohnwu.magisk.utils.WebService;
import java.util.Date;
@@ -22,7 +22,7 @@ public class Repo extends BaseModule {
public void update() throws CacheModException {
Logger.dev("Repo: Re-fetch prop");
String props = WebRequest.makeWebServiceCall(mManifestUrl, WebRequest.GET, true);
String props = WebService.request(mManifestUrl, WebService.GET, true);
String lines[] = props.split("\\n");
parseProps(lines);
}