Skip to content

Commit

Permalink
Merge pull request #88 from RADAR-base/fix/malformed-www-authenticate…
Browse files Browse the repository at this point in the history
…-header

Fix malformed www-authenticate issue
  • Loading branch information
Bdegraaf1234 committed Jul 9, 2024
2 parents ead3cb0 + 7380f78 commit eec126b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class HttpUnauthorizedException(
private val headerFieldIllegalCharacters = "[^\\x20-\\x21\\x23-\\x5B\\x5D-\\x7E]".toRegex()
private fun StringBuilder.appendHeaderField(name: String, value: String?) {
value ?: return
append(' ')
append(", ")
append(name)
append("=\"")
append(value.replace(headerFieldIllegalCharacters, "?"))
Expand Down

0 comments on commit eec126b

Please sign in to comment.