a | b | |
---|
| 0 | + | --- Request2.php.orig 2010-06-21 15:01:59.000000000 +0200 |
---|
| 0 | + | +++ Request2.php 2010-06-21 15:04:34.000000000 +0200 |
---|
| 0 | + | @@ -469,12 +469,17 @@ class HTTP_Request2 implements SplSubjec |
---|
| 0 | + | if (preg_match(self::REGEXP_INVALID_TOKEN, $name)) { |
---|
| 0 | + | throw new HTTP_Request2_Exception("Invalid header name '{$name}'"); |
---|
| 0 | + | } |
---|
| 0 | + | + |
---|
| 0 | + | // Header names are case insensitive anyway |
---|
| 0 | + | $name = strtolower($name); |
---|
| 0 | + | if (null === $value) { |
---|
| 0 | + | unset($this->headers[$name]); |
---|
| 0 | + | } else { |
---|
| 0 | + | - $this->headers[$name] = $value; |
---|
| 0 | + | + if (!isset($this->headers[$name])) { |
---|
| 0 | + | + $this->headers[$name] = $value; |
---|
| 0 | + | + } else { |
---|
| 0 | + | + $this->headers[$name] .= ', ' . $value; |
---|
| 0 | + | + } |
---|
| 0 | + | } |
---|
| 0 | + | } |
---|
| 0 | + | |
---|
... | |
---|