Skip to content

Commit

Permalink
fix: add header
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBrick committed Sep 30, 2023
1 parent 52c99e7 commit 8d8ed27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/kotlin/be/zvz/kotlininside/security/Auth.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8d8ed27

Please sign in to comment.