Skip to content

Commit 3b80105

Browse files
committed
Fixed http headers key
1 parent beec671 commit 3b80105

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/middleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
const SIGNATURE_KEY = 'x-securenative';
3+
const SIGNATURE_KEY = 'HTTTP_X_SECURENATIVE';
44

55
class Middleware
66
{

src/utils.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public static function userAgentFromRequest()
3232

3333
public static function securHeaderFromRequest()
3434
{
35-
if (array_key_exists('x-securenative', $_SERVER)) {
36-
return $_SERVER['x-securenative'];
35+
if (array_key_exists('HTTTP_X_SECURENATIVE', $_SERVER)) {
36+
return $_SERVER['HTTTP_X_SECURENATIVE'];
3737
}
3838
return '';
3939
}

0 commit comments

Comments
 (0)