Skip to content

Commit

Permalink
Allow Token symbols in custom headers map
Browse files Browse the repository at this point in the history
GrakovNe committed Dec 22, 2024
1 parent 825e8f3 commit 265468f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -24,8 +24,8 @@ data class ServerRequestHeader(
* @return A string containing only allowed tchar characters.
*/
private fun String.clean(): String {
val allowed = Regex("[^!#\$%&'*+\\-.^_`|~0-9A-Za-z]")
return this.replace(allowed, "").trim()
val invalidCharacters = Regex("[^!#\$%&'*+\\-.^_`|~0-9A-Za-z]")
return this.replace(invalidCharacters, "").trim()
}
}
}

0 comments on commit 265468f

Please sign in to comment.