Skip to content

Commit

Permalink
Add comment to explain default api version header
Browse files Browse the repository at this point in the history
  • Loading branch information
dleis612 committed Apr 4, 2024
1 parent 8aafe68 commit 19bcdaf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ internal object OkHttpClientBuilder {
"${ForageConstants.Headers.BEARER} $sessionToken"
)
.run {
// If the API_VERSION header has already been appended, don't override it!
chain.request().headers[ForageConstants.Headers.API_VERSION]?.let {
this
}
// Otherwise, set the default API_VERSION header
?: addHeader(
ForageConstants.Headers.API_VERSION,
"default"
Expand Down

0 comments on commit 19bcdaf

Please sign in to comment.