Skip to content

Commit d737c96

Browse files
committed
try fix ci test
1 parent 123f670 commit d737c96

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/SocketIOClient/Transport/HttpTransport.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,18 @@ public async Task PostAsync(string uri, IEnumerable<byte[]> bytes, CancellationT
6262

6363
private void Produce(string text)
6464
{
65-
if (text[0] == 'b')
65+
string[] items = text.Split(new[] { '' }, StringSplitOptions.RemoveEmptyEntries);
66+
foreach (var item in items)
6667
{
67-
//1E 
68-
string[] items = text.Split('');
69-
foreach (var item in items)
68+
if (item[0] == 'b')
7069
{
7170
byte[] bytes = Convert.FromBase64String(item.Substring(1));
7271
OnBinaryReceived(bytes);
7372
}
74-
}
75-
else
76-
{
77-
OnTextReceived(text);
73+
else
74+
{
75+
OnTextReceived(text);
76+
}
7877
}
7978
}
8079
}

0 commit comments

Comments
 (0)