if ($auth_status ne "ok") {
my $reply = CGI->new("");
print $reply->header(-type => 'text/html');
- print "{ progress: 0 }";
+ print '{"progress":"0"}';
exit 0;
}
my $reply = CGI->new("");
print $reply->header(-type => 'text/html');
# response will be sent back as JSON
-print "{ progress: $reported_progress, job_size: $job_size, job_status: '$job_status' }";
+print '{"progress":"' . $reported_progress . '","job_size":"' . $job_size . '","job_status":"' . $job_status . '"}';