Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6452

Add contentType field to renderers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 5.3.13, 5.4.5
    • 5.3.12, 5.4.3
    • rendering

      FreemarkerRenderer used to use the mimeType derived from the requested extension. Now it uses text/html every time.

      This was added:

      response.setContentType(MIMEMapping.getMIMETypeOrDefault(MIMEMapping.DEFAULT_EXTENSION));
      

      FreemarkerRender and JspRenderer should be able to set ContentType.

        Acceptance criteria

              rkovarik Roman Kovařík
              bvass Bence Vass
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m