New method yii\web\Response::setDownladHeaders (#4636)

Removed some code duplication.