Skip to content
Snippets Groups Projects
Commit 67f9205e authored by Lucas García's avatar Lucas García
Browse files

fix: get auth rest controller method

parent 1a5aa954
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,8 @@ class REST_Controller
private static function get_auth()
{
$auth_header = isset($_SERVER['HTTP_AUHTORIZATION'])
? sanitize_text_field($_SERVER['HTTP_AUHTORIZATION'])
$auth_header = isset($_SERVER['HTTP_AUTHORIZATION'])
? sanitize_text_field($_SERVER['HTTP_AUTHORIZATION'])
: (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])
? sanitize_text_field($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])
: null);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment