Merge pull request #5618 from aminking2005/patch-1

[ci skip] Update runtime-responses.md
This commit is contained in:
Alexander Makarov
2014-10-17 11:26:21 +04:00

View File

@@ -67,7 +67,7 @@ $headers = Yii::$app->response->headers;
$headers->add('Pragma', 'no-cache');
// set a Pragma header. Any existing Pragma headers will be discarded.
$headers->add('Pragma', 'no-cache');
$headers->set('Pragma', 'no-cache');
// remove Pragma header(s) and return the removed Pragma header values in array
$values = $headers->remove('Pragma');