Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-79140

LtiServiceConnector doesn't send "accept" header

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE

      At the current code-base (right side) there is no "setAccept" method called, so the request sends without any "accept" header which cause an error on the our backend and the LTI Grade Service doesn't work because our server can't accept the request without "accept" header.

       

      File lib/lti1p3/src/LtiServiceConnector.php:68-78

       

      Adding the following code resolves the issue.

      $request->setAccept('application/json'); 

       

      Could you please fix this or is it irrelevant?

       

            Unassigned Unassigned
            oliinykdm Dmytro Oliinyk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.