Update User-Agent

This commit is contained in:
Erik C. Thauvin 2025-03-18 14:55:36 -07:00
parent bfc468de5b
commit 00178b4e16
Signed by: erik
GPG key ID: 776702A6A2DA330E
2 changed files with 2 additions and 3 deletions

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(