Skip to content

Commit

Permalink
Disable http compression by default #10342 (#10820)
Browse files Browse the repository at this point in the history
(cherry picked from commit 631f853)
  • Loading branch information
anatol-sialitski authored and rymsha committed Dec 18, 2024
1 parent 6aa99b2 commit 2286e4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
/**
* True if GZip should be enabled.
*/
boolean gzip_enabled() default true;
boolean gzip_enabled() default false;

/**
* Content will only be compressed if content length is either unknown or greater than value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ private GzipHandler getHandler()
@Test
public void testConfigure()
{
Mockito.when( this.config.gzip_enabled() ).thenReturn( true );
configure();

final GzipHandler handler = getHandler();
Expand Down

0 comments on commit 2286e4b

Please sign in to comment.