update useragent

This commit is contained in:
Cuong M. Tran 2024-02-19 15:24:46 +07:00
parent a5352650b3
commit b8f88feee9
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -33,7 +33,7 @@ class BangumiInterceptor(private val bangumi: Bangumi) : Interceptor {
return originalRequest.newBuilder()
.header(
"User-Agent",
"antsylich/Komikku/v${BuildConfig.VERSION_NAME} (Android) (http://github.com/mihonapp/mihon)",
"Komikku v${BuildConfig.VERSION_NAME} (${BuildConfig.APPLICATION_ID})",
)
.apply {
if (originalRequest.method == "GET") {