mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-09 17:57:38 +08:00
Merge pull request #6736 from DaSourcerer/patch-1
Remove Content-Transfer-Encoding from the list of default download headers
This commit is contained in:
@ -557,7 +557,6 @@ class Response extends \yii\base\Response
|
||||
->setDefault('Accept-Ranges', 'bytes')
|
||||
->setDefault('Expires', '0')
|
||||
->setDefault('Cache-Control', 'must-revalidate, post-check=0, pre-check=0')
|
||||
->setDefault('Content-Transfer-Encoding', 'binary')
|
||||
->setDefault('Content-Disposition', "$disposition; filename=\"$attachmentName\"");
|
||||
|
||||
if ($mimeType !== null) {
|
||||
|
||||
Reference in New Issue
Block a user