10 lines
217 B
PHP
10 lines
217 B
PHP
<?php
|
|
$type = !empty($_GET['t']) && is_string($_GET['t']) ? trim((string)$_GET['t']) : 'text/plain';
|
|
|
|
header("Content-Type: {$type}");
|
|
|
|
switch($type) {
|
|
case 'application/json':
|
|
echo '[]';
|
|
break;
|
|
}
|