Browse Source

Fixed `yii\web\Response::xSendFile()` does not reset format

tags/2.0.6
Klimov Paul 9 years ago
parent
commit
886e99be11
  1. 1
      framework/CHANGELOG.md
  2. 2
      framework/web/Response.php

1
framework/CHANGELOG.md

@ -14,6 +14,7 @@ Yii Framework 2 Change Log
- Bug #8544: Fixed `yii\db\ActiveRecord` does not updates attribute specified at `optimisticLock()` after save (klimov-paul)
- Bug #8585: Fixed `yii\helpers\Html::activeTextarea()` does not allow value overriding via options (klimov-paul)
- Bug #8593: Fixed `yii\db\ActiveQuery` produces incorrect SQL for aggregations, when `sql` field is set (klimov-paul)
- Bug #8606: Fixed `yii\web\Response::xSendFile()` does not reset format (vyants)
- Bug: Fixed string comparison in `BaseActiveRecord::unlink()` which may result in wrong comparison result for hash valued primary keys starting with `0e` (cebe)
- Bug: Pass correct action name to `yii\console\Controller::options()` when default action was requested (cebe)
- Bug: Automatic garbage collection in `yii\caching\FileCache` was not triggered (kidol)

2
framework/web/Response.php

@ -687,6 +687,8 @@ class Response extends \yii\base\Response
->setDefault('Content-Type', $mimeType)
->setDefault('Content-Disposition', "{$disposition}; filename=\"{$attachmentName}\"");
$this->format = self::FORMAT_RAW;
return $this;
}

Loading…
Cancel
Save