diff --git a/data/web/oauth/profile.php b/data/web/oauth/profile.php index 3628e58b..4364c190 100644 --- a/data/web/oauth/profile.php +++ b/data/web/oauth/profile.php @@ -11,6 +11,7 @@ $stmt->execute(array(':username' => $token['user_id'])); $mailbox = $stmt->fetch(PDO::FETCH_ASSOC); if (!empty($mailbox)) { if ($token['scope'] == 'profile') { + header('Content-Type: application/json'); echo json_encode(array( 'success' => true, 'username' => $token['user_id'],