[main] HttpUtils: make setUserAgent static
This commit is contained in:
parent
fd71209d61
commit
57b3e2b60d
|
@ -62,7 +62,7 @@ public class HttpUtils {
|
|||
})
|
||||
.build();
|
||||
|
||||
public void setUserAgent(String hostname) {
|
||||
public static void setUserAgent(String hostname) {
|
||||
if (hostname == null || hostname.isEmpty()) throw new IllegalArgumentException("Hostname cannot be empty");
|
||||
HttpUtils.userAgent = hostname;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue