Change getMimeType and setMimeType to response->content_type.

This commit is contained in:
Colin Kuskie 2010-11-21 22:35:26 -08:00
parent e5adc07a05
commit fd8f03a186
52 changed files with 138 additions and 175 deletions

View file

@ -619,7 +619,7 @@ sub www_payoutDataAsJSON {
results => $paginator->getPageData,
};
$session->http->setMimeType( 'application/json' );
$session->response->content_type( 'application/json' );
return JSON::to_json( $data );
}
@ -665,7 +665,7 @@ sub www_setPayoutStatus {
$item->update({ vendorPayoutStatus => $status });
}
$session->http->setMimeType( 'text/plain' );
$session->response->content_type( 'text/plain' );
return $status;
}
@ -745,7 +745,7 @@ sub www_vendorTotalsAsJSON {
push @dataset, $dataset;
}
$session->http->setMimeType( 'application/json' );
$session->response->content_type( 'application/json' );
return JSON::to_json( { vendors => \@dataset } );
}