From 067865d313b798c3dc25954fd83164b481812735 Mon Sep 17 00:00:00 2001 From: John Pinto <59218902+pj8912@users.noreply.github.com> Date: Fri, 14 Jul 2023 20:20:26 +0530 Subject: [PATCH] Update Bard.php renamed `$_ENV['_BARD_API_KEY_1PSID']` and `$_ENV['_BARD_API_KEY_1PSIDTS']` to `$_ENV['BARD_API_KEY_X'] ` and `$_ENV['BARD_API_KEY_Y']` for convenience --- src/Bard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bard.php b/src/Bard.php index 6bab72c..a0fbafd 100644 --- a/src/Bard.php +++ b/src/Bard.php @@ -32,7 +32,7 @@ public function __construct($timeout = 6, $proxies = null, $session = null) { if ($session === null) { $this->session = curl_init(); curl_setopt($this->session, CURLOPT_HTTPHEADER, $headers); - curl_setopt($this->session, CURLOPT_COOKIE, "__Secure-1PSID=" . $_ENV["_BARD_API_KEY_1PSID"]."; __Secure-1PSIDTS=" . $_ENV["_BARD_API_KEY_1PSIDTS"]); + curl_setopt($this->session, CURLOPT_COOKIE, "__Secure-1PSID=" . $_ENV["BARD_API_KEY_X"]."; __Secure-1PSIDTS=" . $_ENV["BARD_API_KEY_Y"]); curl_setopt($this->session, CURLOPT_RETURNTRANSFER, true); } else { $this->session = $session;