We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea6d4cc commit aa37fa6Copy full SHA for aa37fa6
1 file changed
Plugins/VercelPackager/Server/server.js
@@ -54,8 +54,9 @@ const server = http.createServer(async (req, res) => {
54
const body = await readBody(req)
55
const _res = await invoke({ method, path, headers, body })
56
const _body = JSON.parse(await readBody(_res))
57
+ console.log(_body)
58
res.writeHead(_body.statusCode, _body.headers)
- res.end(_body.body)
59
+ res.end(Buffer.from(_body.body || '', _body.isBase64Encoded ? 'base64' : 'utf8'))
60
} catch (err) {
61
console.error(err)
62
res.writeHead(500, {})
0 commit comments