Permalink
Browse files

Compress output when Accept-Encoding:gzip present (Fixes #149)

  • Loading branch information...
1 parent 7329bee commit 49bcd80e0b1b917e93c4c8541ed5f09d9efbf9ef @dshafik committed May 16, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/frapi/public/index.php
@@ -2,6 +2,7 @@
require dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'library/Frapi/AllFiles.php';
set_error_handler(array('Frapi_Error', 'errorHandler'), E_ALL);
+ini_set('zlib.output_compression', 1);
try {
if(!isset($customAuthorization)) {

1 comment on commit 49bcd80

Should we set some sort of central place for modifying ini values? Whilst this works, it doesn't seem like a very flexible or clean approach.

Please sign in to comment.