Skip to content

Commit

Permalink
fix(#76-support-auth-header): change type of token
Browse files Browse the repository at this point in the history
  • Loading branch information
y9Kap committed Oct 22, 2023
1 parent bd98784 commit ae91e90
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public suspend inline fun <T, R : MeetacyRequestWithToken<T>> post(
contentType = ContentType.Application.Json
)
)
header("Authorization", request.token)
header("Api-Version", request.apiVersion.toString())
header("Authorization", request.token.string)
header("Api-Version", request.apiVersion.int.toString())
}.body<String>()
}

Expand All @@ -40,6 +40,6 @@ public suspend inline fun <T, R : TokenProviderEmpty<T>> postWithoutToken(
contentType = ContentType.Application.Json
)
)
header("Api-Version", request.apiVersion.toString())
header("Api-Version", request.apiVersion.int.toString())
}.body<String>()
}

0 comments on commit ae91e90

Please sign in to comment.