Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 49bcd80e0b1b917e93c4c8541ed5f09d9efbf9ef 1 parent 7329bee
@dshafik authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/frapi/public/index.php
View
1  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

@davidcoallier

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.
Something went wrong with that request. Please try again.