From f1f1e8ece7d3d1e6ee86493528b212bc29c5a4d1 Mon Sep 17 00:00:00 2001 From: Jake Dallimore Date: Thu, 24 Oct 2024 09:54:19 +0800 Subject: [PATCH] MDL-83538 mod_lti: explicitly set content-type header in token endpoint Prevents a fallback to 'text/html', as set in setup.php. --- mod/lti/token.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/lti/token.php b/mod/lti/token.php index 1dc2abbb1db66..fa77ef3e97d16 100644 --- a/mod/lti/token.php +++ b/mod/lti/token.php @@ -111,6 +111,7 @@ EOD; } +$response->set_content_type('application/json'); $response->set_body($body); -$response->send(); \ No newline at end of file +$response->send();