Skip to content

Commit 257cb61

Browse files
committedApr 2, 2025·
fix(http): disable compression by default
can still be enabled anytime. fixed #592
1 parent 57250a2 commit 257cb61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

Diff for: ‎packages/framework/src/module.config.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@ export class FrameworkConfig {
4545

4646
/**
4747
* The compression level to use when using the zlib module.
48+
*
4849
* 0 means no compression, and 9 is the maximum compression.
50+
*
51+
* Disabled (0) per default. 6 is a good default value if you want to enable compression.
4952
*/
50-
compression: number = 6;
53+
compression: number = 0;
5154

5255
/**
5356
* @description A value of 0 means the main process handles requests alone. A value of > 0 means the main process does not handle any requests and anything is redirected to workers.

0 commit comments

Comments
 (0)
Please sign in to comment.