Skip to content

Commit 38d880e

Browse files
committed
fix: scheme name in authorization header is case insensitive
1 parent 46307b5 commit 38d880e

File tree

1 file changed

+1
-0
lines changed
  • wonderwalled-common/src/main/kotlin/io/nais/common

1 file changed

+1
-0
lines changed

wonderwalled-common/src/main/kotlin/io/nais/common/Http.kt

+1
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,4 @@ fun ApplicationCall.bearerToken(): String? =
103103
request.authorization()
104104
?.takeIf { it.startsWith("Bearer ", ignoreCase = true) }
105105
?.removePrefix("Bearer ")
106+
?.removePrefix("bearer ")

0 commit comments

Comments
 (0)