This commit is contained in:
parent
e4e6e6b13b
commit
d54bf8ec6e
@ -476,7 +476,7 @@ module.exports = (app, client) => {
|
|||||||
])
|
])
|
||||||
result.on('readable', () => res.write('['))
|
result.on('readable', () => res.write('['))
|
||||||
pipeline.on('data', data => res.write(data.toString() + ','))
|
pipeline.on('data', data => res.write(data.toString() + ','))
|
||||||
pipeline.on('finish', () => res.end(']'))
|
pipeline.on('end', () => res.end(']'))
|
||||||
result.pipe(pipeline)
|
result.pipe(pipeline)
|
||||||
} else {
|
} else {
|
||||||
res.status(404).end()
|
res.status(404).end()
|
||||||
|
Loading…
Reference in New Issue
Block a user