From 07c6f1a57cd754162286b2974dfd2fb35685741d Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Sun, 5 Jan 2020 04:34:18 -0500 Subject: [PATCH] LTI: Fix accept-type in results resource --- plugin/ims_lti/src/Service/Resource/LtiResultsResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/ims_lti/src/Service/Resource/LtiResultsResource.php b/plugin/ims_lti/src/Service/Resource/LtiResultsResource.php index 2afa5e3862..7eba1a73ca 100644 --- a/plugin/ims_lti/src/Service/Resource/LtiResultsResource.php +++ b/plugin/ims_lti/src/Service/Resource/LtiResultsResource.php @@ -60,7 +60,7 @@ class LtiResultsResource extends LtiAgsResource throw new AccessDeniedHttpException('Tool not found in course.'); } - if ($this->request->server->get('HTTP_ACCEPT') !== LtiAssignmentGradesService::TYPE_LINE_ITEM) { + if ($this->request->server->get('HTTP_ACCEPT') !== LtiAssignmentGradesService::TYPE_RESULT_CONTAINER) { throw new UnsupportedMediaTypeHttpException('Unsupported media type.'); }