mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-27 00:45:23 -04:00
Cleanups, improve loggings
This commit is contained in:
parent
186f85c44e
commit
bee9d2c610
30 changed files with 200 additions and 161 deletions
|
@ -354,7 +354,7 @@ public class Utilities {
|
|||
URLConnection connection = URI.create(url).toURL().openConnection();
|
||||
connection.setDoOutput(true);
|
||||
connection.setUseCaches(false);
|
||||
connection.setConnectTimeout(10 * 1000);
|
||||
connection.setConnectTimeout((int) TimeUnit.SECONDS.toMillis(10));
|
||||
connection.addRequestProperty("User-Agent", userAgent);
|
||||
connection.connect();
|
||||
try (InputStream inputStream = connection.getInputStream()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue