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

HTC files in packages are sending an improper content-type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.7.1, 1.8
    • 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.7, 1.7.1, 1.7.2, 1.8, 2.0
    • General, Resource
    • None
    • MOODLE_15_STABLE, MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_20_STABLE
    • MOODLE_17_STABLE, MOODLE_18_STABLE

      HTC files in packages return the wrong content-type (document/unknown) even when the Apache web-server is set to serve the correct content-type, this means that packages that rely on the very popular HTC files for scripting will not run the script and will most likely fail to work.

      I believe this is because of the way Moodle serves these files (they're proxied through a PHP). I believe the only change needed is to add .htc to filelib.php with the content-type of application/x-component.

            skodak Petr Skoda
            fickel Tom Hauser (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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