From 5a56328e15e143a0782e588a4977a07e8c3041f5 Mon Sep 17 00:00:00 2001 From: aminking2005 Date: Fri, 17 Oct 2014 10:25:08 +0330 Subject: [PATCH] Update runtime-responses.md --- docs/guide/runtime-responses.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/runtime-responses.md b/docs/guide/runtime-responses.md index e169c6e9fe..a387ef2c39 100644 --- a/docs/guide/runtime-responses.md +++ b/docs/guide/runtime-responses.md @@ -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');