mac
2023-12-15 8087a7d587c9bc3a448e4421bc604f3e71f181a3
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[]{};
        }