Skip to content

Commit 7c10750

Browse files
chore: rename enableEventCompression to enableBodyCompression for internal usage in NodeRequests
1 parent 6ec484d commit 7c10750

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/sdk/server-node/src/platform/NodeRequests.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default class NodeRequests implements platform.Requests {
105105

106106
private _hasProxyAuth: boolean = false;
107107

108-
private _enableEventCompression: boolean = false;
108+
private _enableBodyCompression: boolean = false;
109109

110110
constructor(
111111
tlsOptions?: LDTLSOptions,
@@ -116,7 +116,7 @@ export default class NodeRequests implements platform.Requests {
116116
this._agent = createAgent(tlsOptions, proxyOptions, logger);
117117
this._hasProxy = !!proxyOptions;
118118
this._hasProxyAuth = !!proxyOptions?.auth;
119-
this._enableEventCompression = !!enableEventCompression;
119+
this._enableBodyCompression = !!enableEventCompression;
120120
}
121121

122122
async fetch(url: string, options: platform.Options = {}): Promise<platform.Response> {
@@ -135,7 +135,7 @@ export default class NodeRequests implements platform.Requests {
135135
// enableEventCompression config setting is true and the compressBodyIfPossible
136136
// option is true.
137137
else if (
138-
this._enableEventCompression &&
138+
this._enableBodyCompression &&
139139
!!options.compressBodyIfPossible &&
140140
options.method?.toLowerCase() === 'post' &&
141141
options.body

0 commit comments

Comments
 (0)