X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fdev%2Fincludes%2Frouter.php;h=bb600bf92fba667990f87a31f7c74eebe304215a;hp=9917a4fa080284c5d8fb7138a1471a55df4aced2;hb=424eb75d77f7a7513cd59083198f5b3a407a8715;hpb=584de4441ab44e93805ef0fad7888d29484f63a0 diff --git a/maintenance/dev/includes/router.php b/maintenance/dev/includes/router.php index 9917a4fa08..bb600bf92f 100644 --- a/maintenance/dev/includes/router.php +++ b/maintenance/dev/includes/router.php @@ -1,7 +1,7 @@ + strlen( $content ) > 150 + ) { + $content = gzencode( $content, 9 ); + header( 'Content-Encoding: gzip' ); + } + header( "Content-Length: " . strlen( $content ) ); + echo $content; return true; } - -# Let the php server handle things on its own otherwise -return false;