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

curl class doesn't format header correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.6.1
    • 2.6
    • Libraries

      https://github.com/moodle/moodle/blob/MOODLE_26_STABLE/lib/filelib.php#L3092-3099
      libcurl sends "Expect: 100-continue" to web server, thus server responses something likes this:
      HTTP/1.1 100 Continue
      [blank line]
      [full http response here]

      Above code prevent formatHeader() format the real http response header, it causes curl->getResponse() returns empty array.

            fred Frédéric Massart
            dongsheng Dongsheng Cai
            Dan Poltawski Dan Poltawski
            Sam Hemelryk Sam Hemelryk
            Rossiani Wijaya Rossiani Wijaya
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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