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 }";
+print '{"progress":"' . $reported_progress . '"}';