Ver código fonte

fix byte[] null bug

tags/B.2.5.0_20231216_base
yk 2 anos atrás
pai
commit
7ea5602796
1 arquivos alterados com 3 adições e 0 exclusões
  1. +3
    -0
      xueyi-common/xueyi-common-core/src/main/java/com/xueyi/common/core/utils/DecodeRequestUtils.java

+ 3
- 0
xueyi-common/xueyi-common-core/src/main/java/com/xueyi/common/core/utils/DecodeRequestUtils.java Ver arquivo

@@ -23,6 +23,9 @@ public class DecodeRequestUtils {
*/
public static String getRequestPostStr(HttpServletRequest request) throws IOException {
byte[] buffer = getRequestPostBytes(request);
if (buffer == null) {
return "";
}
String charEncoding = request.getCharacterEncoding();
if (charEncoding == null) {
charEncoding = "UTF-8";


Carregando…
Cancelar
Salvar