mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 08:07:30 +00:00
tweak update stream
This commit is contained in:
parent
f798bd158d
commit
a83156e860
@ -19,10 +19,14 @@ module.exports = [
|
||||
}
|
||||
})
|
||||
streams.add(stream)
|
||||
stream.push(":connected\n\n")
|
||||
|
||||
return {
|
||||
statusCode: 200,
|
||||
contentType: "text/event-stream",
|
||||
headers: {
|
||||
"X-Accel-Buffering": "no"
|
||||
},
|
||||
stream
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user