[main] HttpUtils: make setUserAgent static

This commit is contained in:
Johannes Frohnmeyer 2022-07-04 13:11:53 +02:00
parent fd71209d61
commit 57b3e2b60d
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}