$header{content_type} = 'application/json';
$header{content_type} = 'text/plain' if exists $get{debug};
$header{content_type} = 'application/json';
$header{content_type} = 'text/plain' if exists $get{debug};
if ($source =~ m{(?:/|^)\.}) {
Abort("File request not permitted", '403 source not allowed');
if ($source =~ m{(?:/|^)\.}) {
Abort("File request not permitted", '403 source not allowed');