| @@ -137,11 +137,8 @@ | ||
| 137 | 137 | { |
| 138 | 138 | if (!\is_array($value)) { |
| 139 | 139 | return $this->trimAndValidateHeaderValues([$value]); |
| 140 | 140 | } |
| 141 | - if (\count($value) === 0) { | |
| 142 | - throw new \InvalidArgumentException('Header value can not be an empty array.'); | |
| 143 | - } | |
| 144 | 141 | return $this->trimAndValidateHeaderValues($value); |
| 145 | 142 | } |
| 146 | 143 | /** |
| 147 | 144 | * Trims whitespace from the header values. |