Skip to content

Commit

Permalink
Fixing charset parameter in url encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoocampoh committed Mar 13, 2024
1 parent df97a4d commit f73de0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class DefaultTOTPService(
}

fun String.urlEncode(): String =
URLEncoder.encode(this, Charsets.UTF_8)
URLEncoder.encode(this, Charsets.UTF_8.name())
.replace("+", "%20")
.replace("*", "%2A")
.replace("%7E", "~")

0 comments on commit f73de0f

Please sign in to comment.