View | Details | Raw Unified | Return to bug 36418
Collapse All | Expand All

(-)a/svc/mana/increment (-1 / +1 lines)
Lines 29-35 use JSON; Link Here
29
29
30
my $input = CGI->new;
30
my $input = CGI->new;
31
binmode STDOUT, ":encoding(UTF-8)";
31
binmode STDOUT, ":encoding(UTF-8)";
32
print $input->header( -type => 'text/plain', -charset => 'UTF-8' );
32
print $input->header( -type => 'application/json', -charset => 'UTF-8' );
33
33
34
my ( $auth_status ) =
34
my ( $auth_status ) =
35
  check_cookie_auth( $input->cookie('CGISESSID'),
35
  check_cookie_auth( $input->cookie('CGISESSID'),
(-)a/svc/recall (-2 / +1 lines)
Lines 33-39 my $json = encode_json({ success => 0 }); Link Here
33
my ( $auth_status, $sessionID ) = check_cookie_auth( $input->cookie('CGISESSID'), { recall => 'manage_recalls' } );
33
my ( $auth_status, $sessionID ) = check_cookie_auth( $input->cookie('CGISESSID'), { recall => 'manage_recalls' } );
34
34
35
if ( $auth_status ne "ok" ) {
35
if ( $auth_status ne "ok" ) {
36
    print $input->header(-type => 'text/plain', -status => '403 Forbidden');
36
    print $input->header(-type => 'application/json', -status => '403 Forbidden');
37
    exit 0;
37
    exit 0;
38
}
38
}
39
39
40
- 

Return to bug 36418