mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-23 10:09:40 +08:00
Merge pull request #5618 from aminking2005/patch-1
[ci skip] Update runtime-responses.md
This commit is contained in:
@@ -67,7 +67,7 @@ $headers = Yii::$app->response->headers;
|
|||||||
$headers->add('Pragma', 'no-cache');
|
$headers->add('Pragma', 'no-cache');
|
||||||
|
|
||||||
// set a Pragma header. Any existing Pragma headers will be discarded.
|
// 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
|
// remove Pragma header(s) and return the removed Pragma header values in array
|
||||||
$values = $headers->remove('Pragma');
|
$values = $headers->remove('Pragma');
|
||||||
|
|||||||
Reference in New Issue
Block a user