fix charsets
This commit is contained in:
@@ -307,7 +307,7 @@ public class SecurityConfig {
|
||||
firewall.setAllowedHeaderValues((header) -> {
|
||||
String parsed;
|
||||
try {
|
||||
parsed = new String(header.getBytes("ISO_8859_1"), "UTF_8");
|
||||
parsed = new String(header.getBytes("ISO-8859-1"), "UTF-8");
|
||||
return allowed.matcher(parsed).matches();
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user