mac
2024-01-19 be5c9f324ac1d31f4f262d288c5f72a7a0c10c47
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[]{};
        }