mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 07:57:45 +00:00
add version tag in internet lib
This commit is contained in:
1 file changed
+2
-1
@@ -14,7 +14,8 @@ public class Internet {
|
||||
val connection = (HttpURLConnection) URL.openConnection();
|
||||
connection.setConnectTimeout(3500);
|
||||
connection.setReadTimeout(5000);
|
||||
connection.setRequestProperty("User-Agent", "FalsePatternLib Internet Connector");
|
||||
connection.setRequestProperty("User-Agent", Tags.MODNAME + " " + Tags.VERSION + " Internet Connector" +
|
||||
" (https://github.com/FalsePattern/FalsePatternLib)");
|
||||
if (connection.getResponseCode() != 200) {
|
||||
onError.accept(new Exception("HTTP response code " + connection.getResponseCode()));
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user