I'm setting a Content-Disposition header in mediawiki (to download certain files with their original name and not with underscores). Unfortunately, the S3 client does not properly read these headers, as sanitizeOpHeaders converts all header keys to lowercase, but the S3 backend is hardcoding the expected header names to Content-Disposition and looking for that header in $params['headers'].
Ideally, the S3 backend should do something like:
I'm setting a
Content-Disposition
header in mediawiki (to download certain files with their original name and not with underscores). Unfortunately, the S3 client does not properly read these headers, assanitizeOpHeaders
converts all header keys to lowercase, but the S3 backend is hardcoding the expected header names toContent-Disposition
and looking for that header in$params['headers']
. Ideally, the S3 backend should do something like:to use lowercase keys in order to use any value set by Mediawiki earlier.