?Headers.php000064400000006035147334766770006664 0ustar00data[$offset])) { return null; } return $this->flatten($this->data[$offset]); } /** * Set the given item * * @param string $offset Item name * @param string $value Item value * * @throws \WpOrg\Requests\Exception On attempting to use dictionary as list (`invalidset`) */ public function offsetSet($offset, $value) { if ($offset === null) { throw new Exception('Object is a dictionary, not a list', 'invalidset'); } if (is_string($offset)) { $offset = strtolower($offset); } if (!isset($this->data[$offset])) { $this->data[$offset] = []; } $this->data[$offset][] = $value; } /** * Get all values for a given header * * @param string $offset Name of the header to retrieve. * @return array|null Header values * * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed argument is not valid as an array key. */ public function getValues($offset) { if (!is_string($offset) && !is_int($offset)) { throw InvalidArgument::create(1, '$offset', 'string|int', gettype($offset)); } if (is_string($offset)) { $offset = strtolower($offset); } if (!isset($this->data[$offset])) { return null; } return $this->data[$offset]; } /** * Flattens a value into a string * * Converts an array into a string by imploding values with a comma, as per * RFC2616's rules for folding headers. * * @param string|array $value Value to flatten * @return string Flattened value * * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed argument is not a string or an array. */ public function flatten($value) { if (is_string($value)) { return $value; } if (is_array($value)) { return implode(',', $value); } throw InvalidArgument::create(1, '$value', 'string|array', gettype($value)); } /** * Get an iterator for the data * * Converts the internally stored values to a comma-separated string if there is more * than one value for a key. * * @return \ArrayIterator */ public function getIterator() { return new FilteredIterator($this->data, [$this, 'flatten']); } } error_log000064400000002002147334766770006503 0ustar00[25-Dec-2024 06:14:07 UTC] PHP Fatal error: Uncaught Error: Class 'WpOrg\Requests\Utility\CaseInsensitiveDictionary' not found in /home/supercleanprojan/public_html/wp-includes/Requests/src/Response/Headers.php:20 Stack trace: #0 {main} thrown in /home/supercleanprojan/public_html/wp-includes/Requests/src/Response/Headers.php on line 20 [25-Dec-2024 10:08:51 UTC] PHP Fatal error: Uncaught Error: Class 'WpOrg\Requests\Utility\CaseInsensitiveDictionary' not found in /home/supercleanprojan/public_html/wp-includes/Requests/src/Response/Headers.php:20 Stack trace: #0 {main} thrown in /home/supercleanprojan/public_html/wp-includes/Requests/src/Response/Headers.php on line 20 [25-Dec-2024 12:23:55 UTC] PHP Fatal error: Uncaught Error: Class 'WpOrg\Requests\Utility\CaseInsensitiveDictionary' not found in /home/supercleanprojan/public_html/wp-includes/Requests/src/Response/Headers.php:20 Stack trace: #0 {main} thrown in /home/supercleanprojan/public_html/wp-includes/Requests/src/Response/Headers.php on line 20