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

curl class doesn't format header correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6.1
    • Component/s: Libraries
    • Labels:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fred Frédéric Massart
              Reporter:
              dongsheng Dongsheng Cai
              Peer reviewer:
              Dan Poltawski
              Integrator:
              Sam Hemelryk
              Tester:
              Rossiani Wijaya
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Jan/14