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 8c36022 commit ebad0dfCopy full SHA for ebad0df
packages/cubejs-server-core/src/core/agentCollect.ts
@@ -124,8 +124,11 @@ class HttpTransport implements AgentTransport {
124
const result = await fetch(this.endpointUrl, {
125
agent: this.agent,
126
method: 'post',
127
- body: JSON.stringify(data),
128
- headers: { 'Content-Type': 'application/json' },
+ body: await deflate(JSON.stringify(data)),
+ headers: {
129
+ 'Content-Type': 'application/json',
130
+ 'Content-Encoding': 'deflate'
131
+ },
132
});
133
return result.status === 200;
134
}
0 commit comments