Wrong Content-Type header

Created on 26 June 2023, over 1 year ago
Updated 4 October 2023, about 1 year ago

Problem/Motivation

AVIF images returned by this module have the wrong Content-Type header, they keep the original type of the image (image/png, for example).

Steps to reproduce

Browse to an AVIF URL and inspect the response headers.

Proposed resolution

ImageStyleDownloadController::avifResponse() should use array_merge() instead of += to merge headers (because += does not override existing keys).

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇫🇷France prudloff Lille

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

Comments & Activities

Production build 0.71.5 2024