From 8d8ed27700b3ee65f477604540c325f309efc8f1 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sat, 30 Sep 2023 23:47:15 +0900 Subject: [PATCH] fix: add header --- src/main/kotlin/be/zvz/kotlininside/security/Auth.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/be/zvz/kotlininside/security/Auth.kt b/src/main/kotlin/be/zvz/kotlininside/security/Auth.kt index df644daa..c2d83621 100644 --- a/src/main/kotlin/be/zvz/kotlininside/security/Auth.kt +++ b/src/main/kotlin/be/zvz/kotlininside/security/Auth.kt @@ -99,6 +99,9 @@ class Auth { ApiUrl.PlayService.REGISTER3, HttpInterface.Option() .addHeader("Authorization", generateAidLoginFromCheckin(androidCheckin)) + .addHeader("app", Const.Register3.APP) + .addHeader("gcm_ver", Const.Register3.GCM_VERSION) + .addHeader("app_ver", Const.DC_APP_VERSION_CODE) .setUserAgent(Const.Register3.USER_AGENT) .addBodyParameter("X-subtype", clientToken) .addBodyParameter("sender", clientToken) @@ -162,6 +165,9 @@ class Auth { ApiUrl.PlayService.REGISTER3, HttpInterface.Option() .addHeader("Authorization", generateAidLoginFromCheckin(androidCheckin)) + .addHeader("app", Const.Register3.APP) + .addHeader("gcm_ver", Const.Register3.GCM_VERSION) + .addHeader("app_ver", Const.DC_APP_VERSION_CODE) .setUserAgent(Const.Register3.USER_AGENT) .addBodyParameter("X-subtype", Const.Register3.SENDER) .addBodyParameter("sender", Const.Register3.SENDER)