mirror of
https://github.com/mrclay/minify.git
synced 2025-08-30 09:09:54 +02:00
@@ -187,7 +187,11 @@ by Minify. E.g. <code>@import "<span class=minRoot>/min/?</span>g=css2";</code><
|
||||
var url = 'ocCheck.php?' + (new Date()).getTime();
|
||||
$.get(url, function (ocStatus) {
|
||||
$.get(url + '&hello=1', function (ocHello) {
|
||||
if (ocHello != 'World!') {
|
||||
var expected = [];
|
||||
for (var i = 0; i < 500; i++) {
|
||||
expected.push('0123456789');
|
||||
}
|
||||
if (ocHello != expected.join('')) {
|
||||
msg += 'It appears output is being automatically compressed, interfering '
|
||||
+ ' with Minify\'s own compression. ';
|
||||
if (ocStatus == '1')
|
||||
|
@@ -24,8 +24,8 @@ if (isset($_GET['hello'])) {
|
||||
|
||||
HTTP_Encoder::$encodeToIe6 = true; // just in case
|
||||
$he = new HTTP_Encoder(array(
|
||||
'content' => 'World!'
|
||||
,'method' => 'deflate'
|
||||
'content' => str_repeat('0123456789', 500),
|
||||
'method' => 'deflate',
|
||||
));
|
||||
$he->encode();
|
||||
$he->sendAll();
|
||||
|
Reference in New Issue
Block a user