Skip to content

Commit

Permalink
Fix to_lower_unicode to do what it claims (#162)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
Thalhammer authored Sep 1, 2021
1 parent 402179d commit da4adc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/jwt-cpp/jwt.h
Original file line number Diff line number Diff line change
Expand Up @@ -2797,7 +2797,7 @@ namespace jwt {
std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> conv;
auto wide = conv.from_bytes(str);
auto& f = std::use_facet<std::ctype<wchar_t>>(loc);
f.toupper(&wide[0], &wide[0] + wide.size());
f.tolower(&wide[0], &wide[0] + wide.size());
return conv.to_bytes(wide);
}
};
Expand Down

0 comments on commit da4adc3

Please sign in to comment.