HomeMiraheze

T10285: Set Content-Disposition header on static.miraheze.org requests…

Description

T10285: Set Content-Disposition header on static.miraheze.org requests containing ?download (#3121)

This pull request sets Content-Disposition: attachment on requests at
static.miraheze.org that contain ?download.

This is required by Extension:MultiMediaViewer in order to actually
download the file: see https://phabricator.miraheze.org/T10285.

The code is from Gilles <gdubuc@wikimedia.org>
(https://gerrit.wikimedia.org/r/c/operations/puppet/+/120617), I just
ported it to Miraheze.

Details

Provenance
OrangeStarAuthored on Jan 15 2023, 14:56
GitHub <noreply@github.com>Committed on Jan 15 2023, 14:56
Parents
rPUPCccbaf2398631: matomo: add 2>&1 to outputting to matomo-archive.log (#3115)
Branches
Unknown
Tags
Unknown