Compare commits

..

2 commits

Author SHA1 Message Date
daf5cad807
JDK 24 2025-03-18 23:14:34 -07:00
00178b4e16
Update User-Agent 2025-03-18 14:55:36 -07:00
3 changed files with 3 additions and 4 deletions

View file

@ -22,7 +22,7 @@ jobs:
strategy: strategy:
matrix: matrix:
java-version: [17, 21, 23] java-version: [17, 21, 24]
kotlin-version: [1.9.25, 2.0.20, 2.1.10] kotlin-version: [1.9.25, 2.0.20, 2.1.10]
steps: steps:

View file

@ -62,8 +62,7 @@ object Constants {
/** /**
* User-Agent * User-Agent
*/ */
const val USER_AGENT = const val USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
/** /**
* The help command. * The help command.

View file

@ -424,7 +424,7 @@ object Utils {
try { try {
connection.setRequestProperty( connection.setRequestProperty(
"User-Agent", "User-Agent",
"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0" Constants.USER_AGENT
) )
return if (connection.responseCode.isHttpSuccess()) { return if (connection.responseCode.isHttpSuccess()) {
UrlReaderResponse( UrlReaderResponse(