From 7d488317890fb9f1be6c90d23ccd3f93375e8c83 Mon Sep 17 00:00:00 2001 From: andryyy Date: Sun, 23 Aug 2020 11:18:06 +0200 Subject: [PATCH] [Web] oAuth: Fix content type in profile reply, thanks to @this-user - fixes #3716 --- data/web/oauth/profile.php | 1 + 1 file changed, 1 insertion(+) 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'],