From da4adc36512174cdc6cd217efb3fb5d586ac7386 Mon Sep 17 00:00:00 2001 From: Dominik Thalhammer Date: Wed, 1 Sep 2021 18:54:08 +0200 Subject: [PATCH] Fix to_lower_unicode to do what it claims (#162) No idea how it came in there and it doesn't influence anything as long as both expected and checked value have the same casing (which they do since we apply it to both). --- include/jwt-cpp/jwt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h index 00641d3cf..97425ce31 100644 --- a/include/jwt-cpp/jwt.h +++ b/include/jwt-cpp/jwt.h @@ -2797,7 +2797,7 @@ namespace jwt { std::wstring_convert, wchar_t> conv; auto wide = conv.from_bytes(str); auto& f = std::use_facet>(loc); - f.toupper(&wide[0], &wide[0] + wide.size()); + f.tolower(&wide[0], &wide[0] + wide.size()); return conv.to_bytes(wide); } };