This commit is contained in:
yumoqing 2024-04-13 10:59:40 +08:00
parent 20acb4f882
commit e580ee48be

View File

@ -211,6 +211,7 @@ bricks.HttpResponseStream = class extends bricks.HttpResponse {
const text = decoder.decode(result.value); const text = decoder.decode(result.value);
buff_ += text; buff_ += text;
const lines = buff_.split('\n'); const lines = buff_.split('\n');
console.log(buff_, lines);
for (var i=0;i<lines.length - 1; i++){ for (var i=0;i<lines.length - 1; i++){
handler(lines[i]); handler(lines[i]);
} }