title: GuzzleHTTP headers not set properly
body: <p>I'm trying to send a GET request to an api with my keys. My keys need to be in the header. I have saved my keys in an array <code>$api</code> and given them to Guzzle.</p>
  <p>When I send the GET request I get a <code>403 Forbidden</code> response, my best guess is that the headers aren't actually being set.</p>
  <pre class="lang-php prettyprint-override"><code>require &quot;../vendor/autoload.php&quot;;
  use GuzzleHttp\Client;
  
  $api = array(
      &quot;X-Api-Id&quot; =&gt; &quot;id&quot;,
      &quot;X-Api-Secret&quot; =&gt; &quot;secret&quot;,
      &quot;X-Api-Key&quot; =&gt; &quot;key&quot;
  );
  
  $client = new GuzzleHttp\Client([
      &quot;base_uri&quot; =&gt; &quot;example.com&quot;,
      &quot;timeout&quot; =&gt; 5
  ]);
  
  $response = $this-&gt;client-&gt;request(&quot;GET&quot;, &quot;/configs/&quot;, [&quot;verify&quot; =&gt; false, &quot;headers&quot; =&gt; $api]);
  var_dump($response);
  
  </code></pre>
  <p>The error</p>
  <blockquote>
  <p>Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: <code>GET https://api.onetap.com/configs/</code> resulted in a <code>403 Forbidden</code> response:     &lt;!--[if IE 7]&gt; &lt;html class (truncated...) in C:\scaryconfigscc\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 113</p>
  </blockquote>