Skip to content

Commit

Permalink
MDL-83538 mod_lti: explicitly set content-type header in token endpoint
Browse files Browse the repository at this point in the history
Prevents a fallback to 'text/html', as set in setup.php.
  • Loading branch information
snake committed Oct 24, 2024
1 parent 09880d7 commit f1f1e8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/lti/token.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
EOD;
}

$response->set_content_type('application/json');
$response->set_body($body);

$response->send();
$response->send();

0 comments on commit f1f1e8e

Please sign in to comment.