Re: [PATCH] Allow unsetting headers previously set by header()
| From: | Edward Z. Yang | Date: | Sun, 30 Mar 2008 20:05:13 +0000 |
| Subject: | Re: [PATCH] Allow unsetting headers previously set by header() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36690@lists.php.net to get a copy of this message | ||
Christian Schmidt wrote:
> What do you think of the general idea of being able to unset headers?
> And what do you think of my patch?
If you need this kind of flexibility, I recommend you make an
HttpHeaders class which manages these things and then sends them when
necessary.
--
Edward Z. Yang GnuPG: 0x869C48DA
HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter
[[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]