Skip to content

Commit b60938f

Browse files
committed
use apache_request_headers instead of getallheaders since that is just an alias
1 parent c31e6b9 commit b60938f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/class-wp-json-authentication-oauth1.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public function parse_header( $header ) {
6363
public function retrieve_authorization_headers() {
6464
$auth_headers = ! empty( $_SERVER['HTTP_AUTHORIZATION'] ) ? $_SERVER['HTTP_AUTHORIZATION'] : false;
6565

66-
if ( ! $auth_headers && function_exists( 'getallheaders' ) ) {
67-
$all_headers = getallheaders();
66+
if ( ! $auth_headers && function_exists( 'apache_request_headers' ) ) {
67+
$all_headers = apache_request_headers();
6868
$auth_headers = isset( $all_headers['Authorization'] ) ? $all_headers['Authorization'] : false;
6969
}
7070

0 commit comments

Comments
 (0)