Commit a9fb207a by Alexander Makarov

Merge pull request #5618 from aminking2005/patch-1

[ci skip] Update runtime-responses.md
parents 196748a7 5a56328e
...@@ -67,7 +67,7 @@ $headers = Yii::$app->response->headers; ...@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment