fix: Disable MAL's custom user-agent

This commit is contained in:
Ahmad Ansori Palembani 2025-05-14 04:27:11 +07:00
parent 4a4e73197f
commit 646bc08ac7
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -34,7 +34,7 @@ class MyAnimeListInterceptor(private val myanimelist: MyAnimeList) : Interceptor
// Add the authorization header to the original request
val authRequest = originalRequest.newBuilder()
.addHeader("Authorization", "Bearer ${oauth!!.accessToken}")
.header("User-Agent", "null2264/yokai/${BuildConfig.VERSION_NAME} (${BuildConfig.APPLICATION_ID})")
// .header("User-Agent", "null2264/yokai/${BuildConfig.VERSION_NAME} (${BuildConfig.APPLICATION_ID})")
.build()
return chain.proceed(authRequest)