HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/bean/LinkRequest.java
@@ -4,6 +4,8 @@ import com.hdl.sdk.link.common.utils.ByteUtils; import java.nio.charset.StandardCharsets; /** * Created by Tong on 2021/9/29. @@ -123,7 +125,7 @@ "Length:" + getLength() + "\r\n\r\n"; return ByteUtils.concatBytes(header.getBytes("utf-8"), getData()); return ByteUtils.concatBytes(header.getBytes(StandardCharsets.UTF_8), getData()); } catch (Exception e) { return new byte[]{}; }