We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aadf613 commit dad98c9Copy full SHA for dad98c9
src/WP_CLI/CommandWithUpgrade.php
@@ -1197,7 +1197,7 @@ protected function get_raw_url_from_gist( $gist_id ) {
1197
$api_url = 'https://api.github.com/gists/' . $gist_id;
1198
$token = getenv( 'GITHUB_TOKEN' );
1199
1200
- $request_arguments = $token ? [ 'headers' => 'Authorization: Bearer ' . $token ] : [];
+ $request_arguments = $token ? [ 'headers' => [ 'Authorization' => 'Bearer ' . $token ] ] : [];
1201
1202
$response = \wp_remote_get( $api_url, $request_arguments );
1203
0 commit comments