Skip to content

Commit dad98c9

Browse files
swissspidyCopilot
andauthored
Update src/WP_CLI/CommandWithUpgrade.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent aadf613 commit dad98c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WP_CLI/CommandWithUpgrade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ protected function get_raw_url_from_gist( $gist_id ) {
11971197
$api_url = 'https://api.github.com/gists/' . $gist_id;
11981198
$token = getenv( 'GITHUB_TOKEN' );
11991199

1200-
$request_arguments = $token ? [ 'headers' => 'Authorization: Bearer ' . $token ] : [];
1200+
$request_arguments = $token ? [ 'headers' => [ 'Authorization' => 'Bearer ' . $token ] ] : [];
12011201

12021202
$response = \wp_remote_get( $api_url, $request_arguments );
12031203

0 commit comments

Comments
 (0)