We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9586075 commit 8cf345fCopy full SHA for 8cf345f
lib/src/client/streamable_https.dart
@@ -378,7 +378,10 @@ class StreamableHttpClientTransport implements Transport {
378
// Process the buffer line by line
379
while (buffer.contains('\n')) {
380
final index = buffer.indexOf('\n');
381
- final line = buffer.substring(0, index);
+ var line = buffer.substring(0, index);
382
+ if (line.endsWith('\r')) {
383
+ line = line.substring(0, line.length - 1);
384
+ }
385
buffer = buffer.substring(index + 1);
386
387
if (line.isEmpty) {
0 commit comments