Permalink
Browse files

Fixing issue 2662: Adding removeHeaders method to Http/Headers for ea…

…sy removal of all headers in the container
  • Loading branch information...
1 parent be85698 commit fcc456f6a709de7d21dcbb4db7fe10322b870a07 Joseph Crawford committed Nov 27, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 library/Zend/Http/Headers.php
@@ -224,6 +224,14 @@ public function removeHeader(Header\HeaderInterface $header)
}
return false;
}
+
+ /**
+ * Remove all Headers from the container
+ */
+ public function removeHeaders()
+ {
+ $this->headers = array();
+ }
/**
* Clear all headers

0 comments on commit fcc456f

Please sign in to comment.