Updated user-agent.
This commit is contained in:
parent
47bc73b743
commit
3c09a9ee9b
1 changed files with 1 additions and 2 deletions
|
@ -54,8 +54,7 @@ class Isgd private constructor() {
|
||||||
val connection = URL(url).openConnection() as HttpURLConnection
|
val connection = URL(url).openConnection() as HttpURLConnection
|
||||||
connection.setRequestProperty(
|
connection.setRequestProperty(
|
||||||
"User-Agent",
|
"User-Agent",
|
||||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)" +
|
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0"
|
||||||
"Chrome/80.0.3987.149 Safari/537.36"
|
|
||||||
)
|
)
|
||||||
return connection.inputStream.bufferedReader().readText()
|
return connection.inputStream.bufferedReader().readText()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue