()
| 1054 | |
| 1055 | |
| 1056 | private Charset getCharset() { |
| 1057 | Charset charset = coyoteRequest.getCharsetHolder().getCharset(); |
| 1058 | |
| 1059 | if (charset == null) { |
| 1060 | Context context = getContext(); |
| 1061 | if (context != null) { |
| 1062 | charset = CharsetHolder.getInstance(context.getRequestCharacterEncoding()).getCharset(); |
| 1063 | } |
| 1064 | } |
| 1065 | |
| 1066 | if (charset == null) { |
| 1067 | charset = org.apache.coyote.Constants.DEFAULT_BODY_CHARSET; |
| 1068 | } |
| 1069 | |
| 1070 | return charset; |
| 1071 | } |
| 1072 | |
| 1073 | |
| 1074 | @Override |
no test coverage detected