Added content type to JSON output functions

This commit is contained in:
Felix Rabinovich
2008-12-26 20:08:15 +00:00
parent 7fdde469d3
commit 6b1fa62173
5 changed files with 9 additions and 0 deletions
+1
View File
@@ -28,6 +28,7 @@ class Login_Controller extends Controller {
private function _try_login() {
$form = $this->_login_form();
rest::http_content_type(rest::JSON);
$valid = $form->validate();
if ($valid) {