File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -42,29 +42,6 @@ const requestOp =
4242 } ,
4343 }
4444
45- if ( payload ) {
46- const shouldCompress = ! NO_COMPRESSION_PATHS . includes ( reqData . path ) ;
47-
48- if ( shouldCompress ) {
49- try {
50- if ( typeof payload === 'object' ) {
51- payload = lzwCompress ( JSON . stringify ( payload ) ) ;
52- console . log ( "Compressed payload" ) ;
53- } else if ( typeof payload === 'string' && payload . length > 1000 ) {
54- // Compress large strings
55- payload = lzwCompress ( payload ) ;
56- console . log ( "Compressed payload" ) ;
57- }
58- } catch ( e ) {
59- console . error ( "Error in requestOp: " , e ) ;
60- console . log ( "Sending uncompressed payload" ) ;
61- }
62- } else {
63- console . log ( `Skipping compression for path: ${ reqData . path } ` ) ;
64- }
65- reqPayload . body = JSON . stringify ( { data : payload } ) ;
66-
67- }
6845 if ( payload ) {
6946 const shouldCompress = ! NO_COMPRESSION_PATHS . includes ( reqData . path ) ;
7047
You can’t perform that action at this time.
0 commit comments