We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2809c6e + aecb289 commit 47a8f58Copy full SHA for 47a8f58
src/Headers.php
@@ -64,7 +64,7 @@ public static function all(bool $safeOutput = false): array
64
*/
65
public static function get($params, bool $safeOutput = false)
66
{
67
- if (is_string($params)) return self::all($safeOutput)[$params] ?? null;
+ if (is_string($params)) return array_change_key_case(self::all($safeOutput), CASE_LOWER)[strtolower($params)] ?? null;
68
69
$data = [];
70
foreach ($params as $param) {
0 commit comments