We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c31e6b9 commit b60938fCopy full SHA for b60938f
lib/class-wp-json-authentication-oauth1.php
@@ -63,8 +63,8 @@ public function parse_header( $header ) {
63
public function retrieve_authorization_headers() {
64
$auth_headers = ! empty( $_SERVER['HTTP_AUTHORIZATION'] ) ? $_SERVER['HTTP_AUTHORIZATION'] : false;
65
66
- if ( ! $auth_headers && function_exists( 'getallheaders' ) ) {
67
- $all_headers = getallheaders();
+ if ( ! $auth_headers && function_exists( 'apache_request_headers' ) ) {
+ $all_headers = apache_request_headers();
68
$auth_headers = isset( $all_headers['Authorization'] ) ? $all_headers['Authorization'] : false;
69
}
70
0 commit comments