fix(xo-server/callProxyMethod): lines is an object stream

This commit is contained in:
Julien Fontanet
2020-06-30 12:03:14 +02:00
parent 30ea1bbf87
commit 237ec38003

View File

@@ -358,7 +358,7 @@ export default class Proxy {
await this.updateProxy(id, { authenticationToken })
}
const lines = pumpify(response, split2())
const lines = pumpify.obj(response, split2())
const firstLine = await readChunk(lines)
const { result, error } = parse(String(firstLine))