Skip to content

Commit

Permalink
fix: improve gzip compression of the payloads to handle some larger ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Yegupov committed Apr 30, 2019
1 parent a21cd0c commit f762374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/request/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function makeRequest(payload) {
}

// always compress going upstream
data = zlib.gzipSync(json);
data = zlib.gzipSync(json, {level: 9});

snykDebug('sending request to:', payload.url);
snykDebug('request body size:', json.length);
Expand Down

0 comments on commit f762374

Please sign in to comment.