Skip to content

Commit

Permalink
More pre-defined headers
Browse files Browse the repository at this point in the history
A few common headers were missing, hopefully this now covers all the most common headers.
  • Loading branch information
trowski committed Apr 8, 2023
1 parent 28a28a7 commit 90b524d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Internal/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,22 @@
'connection' => 'connection',
'Content-Encoding' => 'content-encoding',
'content-encoding' => 'content-encoding',
'Content-Length' => 'content-length',
'content-length' => 'content-length',
'Content-Type' => 'content-type',
'content-type' => 'content-type',
'Content-Security-Policy' => 'content-security-policy',
'content-security-policy' => 'content-security-policy',
'Cookie' => 'cookie',
'cookie' => 'cookie',
'Date' => 'date',
'date' => 'date',
'Forwarded' => 'forwarded',
'forwarded' => 'forwarded',
'Host' => 'host',
'host' => 'host',
'Referrer-Policy' => 'referrer-policy',
'referrer-policy' => 'referrer-policy',
'Sec-Fetch-Dest' => 'sec-fetch-dest',
'sec-fetch-dest' => 'sec-fetch-dest',
'Sec-Fetch-Mode' => 'sec-fetch-mode',
Expand All @@ -36,10 +46,24 @@
'set-cookie' => 'set-cookie',
'Strict-Transport-Security' => 'strict-transport-security',
'strict-transport-security' => 'strict-transport-security',
'Transfer-Encoding' => 'transfer-encoding',
'transfer-encoding' => 'transfer-encoding',
'Upgrade-Insecure-Requests' => 'upgrade-insecure-requests',
'upgrade-insecure-requests' => 'upgrade-insecure-requests',
'User-Agent' => 'user-agent',
'user-agent' => 'user-agent',
'Vary' => 'vary',
'vary' => 'vary',
'X-Content-Type-Options' => 'x-content-type-options',
'x-content-type-options' => 'x-content-type-options',
'X-Forwarded-For' => 'x-forwarded-for',
'x-forwarded-for' => 'x-forwarded-for',
'X-Forwarded-Host' => 'x-forwarded-host',
'x-forwarded-host' => 'x-forwarded-host',
'X-Forwarded-Proto' => 'x-forwarded-proto',
'x-forwarded-proto' => 'x-forwarded-proto',
'X-Frame-Options' => 'x-frame-options',
'x-frame-options' => 'x-frame-options',
'X-Xss-Protection' => 'x-xss-protection',
'x-xss-protection' => 'x-xss-protection',
];

0 comments on commit 90b524d

Please sign in to comment.