mirror of https://github.com/NekoX-Dev/NekoX.git
11 lines
305 B
Kotlin
11 lines
305 B
Kotlin
package tw.nekomimi.nekogram.utils
|
|
|
|
import cn.hutool.http.HttpRequest
|
|
|
|
fun HttpRequest.applyUserAgent(): HttpRequest {
|
|
|
|
header("User-Agent", "Mozilla/5.0 (iPhone; CPU iPhone OS 10_0 like Mac OS X) AppleWebKit/602.1.38 (KHTML, like Gecko) Version/10.0 Mobile/14A5297c Safari/602.1")
|
|
|
|
return this
|
|
|
|
} |