Skip to content

Commit 0848ee1

Browse files
committed
add version tag in internet lib
1 parent ad66bad commit 0848ee1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/falsepattern/lib/internal/Internet.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public static void connect(URL URL, Consumer<Exception> onError, Consumer<InputS
1414
val connection = (HttpURLConnection) URL.openConnection();
1515
connection.setConnectTimeout(3500);
1616
connection.setReadTimeout(5000);
17-
connection.setRequestProperty("User-Agent", "FalsePatternLib Internet Connector");
17+
connection.setRequestProperty("User-Agent", Tags.MODNAME + " " + Tags.VERSION + " Internet Connector" +
18+
" (https://github.com/FalsePattern/FalsePatternLib)");
1819
if (connection.getResponseCode() != 200) {
1920
onError.accept(new Exception("HTTP response code " + connection.getResponseCode()));
2021
} else {

0 commit comments

Comments
 (0)