Skip to content

Commit

Permalink
fix: scheme name in authorization header is case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
tronghn committed Dec 3, 2024
1 parent 46307b5 commit 38d880e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wonderwalled-common/src/main/kotlin/io/nais/common/Http.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,4 @@ fun ApplicationCall.bearerToken(): String? =
request.authorization()
?.takeIf { it.startsWith("Bearer ", ignoreCase = true) }
?.removePrefix("Bearer ")
?.removePrefix("bearer ")

0 comments on commit 38d880e

Please sign in to comment.