LTI: Fix accept-type in results resource

pull/3065/head
Angel Fernando Quiroz Campos 6 years ago
parent d43eb405a8
commit 07c6f1a57c
  1. 2
      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.');
}

Loading…
Cancel
Save