提交 65064fd5 编写于 作者: M Matt Bierner

Make sure log body is properly encoded

上级 97904cdd
...@@ -83,10 +83,9 @@ async function postLogs( ...@@ -83,10 +83,9 @@ async function postLogs(
result = await requestService.request({ result = await requestService.request({
url: endpoint.url, url: endpoint.url,
type: 'POST', type: 'POST',
data: fs.createReadStream(outZip), data: new Buffer(fs.readFileSync(outZip)).toString('base64'),
headers: { headers: {
'Content-Type': 'application/zip', 'Content-Type': 'application/zip'
'Content-Length': fs.statSync(outZip).size
} }
}); });
} catch (e) { } catch (e) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册