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=828dbd1d475a77a5d28563031d4cd61bb080fef0 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;