Skip to content

Commit da4adc3

Browse files
authored
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).
1 parent 402179d commit da4adc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/jwt-cpp/jwt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2797,7 +2797,7 @@ namespace jwt {
27972797
std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> conv;
27982798
auto wide = conv.from_bytes(str);
27992799
auto& f = std::use_facet<std::ctype<wchar_t>>(loc);
2800-
f.toupper(&wide[0], &wide[0] + wide.size());
2800+
f.tolower(&wide[0], &wide[0] + wide.size());
28012801
return conv.to_bytes(wide);
28022802
}
28032803
};

0 commit comments

Comments
 (0)