File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/sdk/server-node/src/platform Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments