fetch-event-source icon indicating copy to clipboard operation
fetch-event-source copied to clipboard

If there is a space in front of the data, it will be truncated

Open AlanFgg opened this issue 2 years ago • 3 comments
trafficstars

for examole: data: exp the space in front of exp will be subArray.

const valueOffset = fieldLength + (line[fieldLength + 1] === 32 ? 1 : 1);

it should be: const valueOffset = fieldLength + 1;

AlanFgg avatar May 18 '23 05:05 AlanFgg

我也遇到这个问题,在使用chatgpt功能的时候

DeshengLii avatar Jun 22 '23 07:06 DeshengLii

@echofly/fetch-event-source,用这个包,修复了这个问题

echofly avatar Jul 19 '23 03:07 echofly