diff --git a/.github/workflows/bld.yml b/.github/workflows/bld.yml index 3511dc4..48f1a71 100644 --- a/.github/workflows/bld.yml +++ b/.github/workflows/bld.yml @@ -22,7 +22,7 @@ jobs: strategy: matrix: - java-version: [17, 21, 24] + java-version: [17, 21, 23] kotlin-version: [1.9.25, 2.0.20, 2.1.10] steps: diff --git a/src/main/kotlin/net/thauvin/erik/mobibot/Constants.kt b/src/main/kotlin/net/thauvin/erik/mobibot/Constants.kt index 0dea8d5..d00939e 100644 --- a/src/main/kotlin/net/thauvin/erik/mobibot/Constants.kt +++ b/src/main/kotlin/net/thauvin/erik/mobibot/Constants.kt @@ -62,7 +62,8 @@ object Constants { /** * User-Agent */ - const val USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0" + const val USER_AGENT = + "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" /** * The help command. diff --git a/src/main/kotlin/net/thauvin/erik/mobibot/Utils.kt b/src/main/kotlin/net/thauvin/erik/mobibot/Utils.kt index 97797ef..fc5ee7d 100644 --- a/src/main/kotlin/net/thauvin/erik/mobibot/Utils.kt +++ b/src/main/kotlin/net/thauvin/erik/mobibot/Utils.kt @@ -424,7 +424,7 @@ object Utils { try { connection.setRequestProperty( "User-Agent", - Constants.USER_AGENT + "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0" ) return if (connection.responseCode.isHttpSuccess()) { UrlReaderResponse(