Compare commits

..

No commits in common. "710dc3fd052776d2ae0a6bcd545cccf12e2f08fb" and "2c8b88ca523be989efa83f60fd7b291cac56cd7d" have entirely different histories.

3 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ public interface Downloader {
* @param sha256hex
* @return a future which can throw ioexception or signatureexception
*/
CompletableFuture<File> downloadAndVerify(String url, String sha256hex);
public CompletableFuture<File> downloadAndVerify(String url, String sha256hex);
/**
* moves source into destination
@ -18,5 +18,5 @@ public interface Downloader {
* @param destination
* @return a future which can throw ioexception
*/
CompletableFuture<Void> install(File source, File destination);
public CompletableFuture<Void> install(File source, File destination);
}

View file

@ -20,6 +20,7 @@ public class ConstantEnvironment implements Environment {
@Override
public String getChannel() {
// TODO Auto-generated method stub
return channel;
}

View file

@ -60,7 +60,6 @@ public class GiteaMetadataDAO implements MetadataDAO {
private CompletableFuture<HttpResponse<String>> makeRequest(String url) {
System.out.println("Request: " + url);
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(url))
.header("User-Agent", "ju/1") // jar updater v1