lib/calcms: remove debug code

This commit is contained in:
Milan
2022-11-18 23:13:08 +01:00
parent 267ebb33c0
commit 9d5b154b69
31 changed files with 3 additions and 150 deletions

View File

@@ -53,7 +53,7 @@ sub process($$$$) {
$params->{jobs} = roles::get_user_jobs($config);
if ( ( $filename =~ /json\-p/ ) || (params::isJson) ) {
my $header = "Content-type:application/json; charset=utf-8\n\n";
my $json = JSON::to_json( $params, { pretty => 1 } );
my $json = JSON->new->pretty(1)->canonical()->encode($params);
$json = $header . $params->{json_callback} . $json;
if ( ( defined $_[1] ) && ( $_[1] eq 'print' ) ) {