Skip to content

Commit 8de9b80

Browse files
authored
BUGFIX: $auth_header always setted
Fix the behaviour described in #24
1 parent 1b5ac8f commit 8de9b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ public static function get_auth_header() {
616616
/**
617617
* If the $auth header is set, use it. Otherwise attempt to use the $redirect_auth header
618618
*/
619-
$auth_header = isset( $auth_header ) ? $auth_header : ( isset( $redirect_auth_header ) ? $redirect_auth_header : null );
619+
$auth_header = $auth_header !== false ? $auth_header : ( $redirect_auth_header !== false ? $redirect_auth_header : null );
620620

621621
/**
622622
* Return the auth header, pass through a filter

0 commit comments

Comments
 (0)