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

fix:empty line break is ignored during parsing

Open smiler-rf opened this issue 1 year ago • 0 comments
trafficstars

for message: "id:111111\nevent:add\ndata:\ndata:more\n\n"

before: parse result is:

{
id: "11111",
event: "add",
data: "more"
}

now: parse result is:

{
id: "11111",
event: "add",
data: "\nmore"
}

smiler-rf avatar Dec 20 '23 10:12 smiler-rf