diff --git a/src/main/java/com/tencentcloudapi/common/SSEResponseModel.java b/src/main/java/com/tencentcloudapi/common/SSEResponseModel.java index f4f07d362..050c3614b 100644 --- a/src/main/java/com/tencentcloudapi/common/SSEResponseModel.java +++ b/src/main/java/com/tencentcloudapi/common/SSEResponseModel.java @@ -104,7 +104,11 @@ public SSE next() { if (sb.length() > 0) { sb.append('\n'); } - sb.append(line.substring(colonIdx + 1)); + line = line.substring(colonIdx + 1); + if (line.charAt(0) == ' ') { + line = line.substring(1); + } + sb.append(line); break; case "retry": e.Retry = Integer.parseInt(line.substring(colonIdx + 1));