Skip to content

Commit

Permalink
Merge pull request #38 from uselagoon/drush-alias-header
Browse files Browse the repository at this point in the history
chore: add alias stub header
  • Loading branch information
tobybellwood authored Sep 5, 2023
2 parents 8e92200 + 290a4fb commit f969b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drush-alias/web/aliases.drushrc.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
curl_setopt($curl, CURLOPT_HTTPHEADER, ['Content-Type: application/json', "Authorization: Bearer $jwt_token"]);
curl_setopt($curl, CURLOPT_HTTPHEADER, ['X-Lagoon-Service: drush-alias', 'Content-Type: application/json', "Authorization: Bearer $jwt_token"]);
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode(array(
'query' => $query,
)));
Expand Down

0 comments on commit f969b1a

Please sign in to comment.