(Wizard) Response Content-Type lost when view output is cached

Created on 1 May 2023, over 1 year ago
Updated 12 May 2023, over 1 year ago

Problem/Motivation

When using the iCal style/fields row wizard, the Content-Type is set on the view's response during rendering. On subsequent path loads, the view is not rendered again (since the output is cached) and thus the Content-Type is not set correctly, causing it to be rendered with a Content-Type of text/html.

Steps to reproduce

Configure a new iCal feed using the wizard
Visit the path configured
Verify that the Content-Type of the response is text/calendar
Reload the path (with caching enabled)
Verify that the Content-Type is text/html

Proposed resolution

Always set the Content-Type when building a response.

πŸ› Bug report
Status

Fixed

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024