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.'); }