We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9122f2d commit 9f8a659Copy full SHA for 9f8a659
g2-ssr/app.js
@@ -80,10 +80,14 @@ function toPost(req, res) {
80
console.log('data')
81
bodyChunks.push(chunk)
82
console.log('tobuffer')
83
- });
84
- res.end('complete', async () => {
+ }).on('end', function () {
85
const completeBodyBuffer = Buffer.concat(bodyChunks);
86
console.log('toBuffer', completeBodyBuffer.toString('utf8'))
+ });
87
+ res.end('complete', async () => {
88
+ console.log('complete')
89
+ // const completeBodyBuffer = Buffer.concat(bodyChunks);
90
+ // console.log('toBuffer', completeBodyBuffer.toString('utf8'))
91
// await GenerateCharts(JSON.parse(completeBodyBuffer.toString('utf8')))
92
});
93
}
0 commit comments