Lines 36-42
my ($auth_status, $sessionID) = check_cookie_auth($cookies{'CGISESSID'}->value,
Link Here
|
36 |
if ($auth_status ne "ok") { |
36 |
if ($auth_status ne "ok") { |
37 |
my $reply = CGI->new(""); |
37 |
my $reply = CGI->new(""); |
38 |
print $reply->header(-type => 'text/html'); |
38 |
print $reply->header(-type => 'text/html'); |
39 |
print "{ progress: 0 }"; |
39 |
print '{"progress":"0"}'; |
40 |
exit 0; |
40 |
exit 0; |
41 |
} |
41 |
} |
42 |
|
42 |
|
Lines 54-57
if (defined $job) {
Link Here
|
54 |
my $reply = CGI->new(""); |
54 |
my $reply = CGI->new(""); |
55 |
print $reply->header(-type => 'text/html'); |
55 |
print $reply->header(-type => 'text/html'); |
56 |
# response will be sent back as JSON |
56 |
# response will be sent back as JSON |
57 |
print "{ progress: $reported_progress, job_size: $job_size, job_status: '$job_status' }"; |
57 |
print '{"progress":"' . $reported_progress . '","job_size":"' . $job_size . '","job_status":"' . $job_status . '"}'; |