diff --git a/tencentcloud/common/abstract_client.py b/tencentcloud/common/abstract_client.py index 878be45d0..1706806c2 100644 --- a/tencentcloud/common/abstract_client.py +++ b/tencentcloud/common/abstract_client.py @@ -389,6 +389,9 @@ def _process_response_sse(resp): colon_idx = line.find(':') key = line[:colon_idx] val = line[colon_idx + 1:] + # If value starts with a U+0020 SPACE character, remove it from value. + if val and val[0] == " ": + val = val[1:] if key == 'data': # The spec allows for multiple data fields per event, concatenated them with "\n". if 'data' not in e: