From cf1b752dab4111e1abbcaa34954284c8a5d5586a Mon Sep 17 00:00:00 2001 From: Chris Branch Date: Mon, 13 Nov 2023 12:24:10 +0000 Subject: [PATCH] Parse URL safe base64 encoding in header values Errata from #23. Parsing still expected the standard base64 alphabet so base64url values were rejected. --- src/auth/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/mod.rs b/src/auth/mod.rs index 4226aae..63a74e1 100644 --- a/src/auth/mod.rs +++ b/src/auth/mod.rs @@ -24,7 +24,7 @@ pub(crate) fn parse_u32(input: &str) -> Result { } pub(crate) fn base64_char(input: &str) -> IResult<&str, &str> { - nom::bytes::complete::is_a("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")( + nom::bytes::complete::is_a("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=")( input, ) }