blob: fd085dbb157ab7514286fc9516f7d3cbfc0162d7 [file] [log] [blame]
<?php
$query = $_GET["q"];
$contentType = !empty($_GET["type"]) ? $_GET["type"] : "text/plain";
$gzipEncodedData = gzencode($_GET['q']);
header("Content-Type: " . $_GET["type"]);
header("Content-Encoding: gzip");
header("Content-Length: " . strlen($gzipEncodedData));
echo $gzipEncodedData;
?>