Compare commits
3 commits
2c8b88ca52
...
710dc3fd05
Author | SHA1 | Date | |
---|---|---|---|
710dc3fd05 | |||
289523febf | |||
76fc16ca19 |
3 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ public interface Downloader {
|
|||
* @param sha256hex
|
||||
* @return a future which can throw ioexception or signatureexception
|
||||
*/
|
||||
public CompletableFuture<File> downloadAndVerify(String url, String sha256hex);
|
||||
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
|
||||
*/
|
||||
public CompletableFuture<Void> install(File source, File destination);
|
||||
CompletableFuture<Void> install(File source, File destination);
|
||||
}
|
||||
|
|
|
@ -20,7 +20,6 @@ public class ConstantEnvironment implements Environment {
|
|||
|
||||
@Override
|
||||
public String getChannel() {
|
||||
// TODO Auto-generated method stub
|
||||
return channel;
|
||||
}
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ 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
|
||||
|
|
Loading…
Reference in a new issue