title: Basic authentication with hey tool fails
body: <p>I have an <code>elasticsearch</code> cluster which I can hit as follows:</p>
  <pre><code>▶ curl -k https://localhost:9200 -u username:password
  {
    &quot;name&quot; : &quot;elasticsearch-sample-es-master-1&quot;,
    &quot;cluster_name&quot; : &quot;elasticsearch-sample&quot;,
    &quot;cluster_uuid&quot; : &quot;XXXXXXXXXXXXXXXXXXX&quot;,
    &quot;version&quot; : {
      &quot;number&quot; : &quot;7.11.0&quot;,
      &quot;build_flavor&quot; : &quot;default&quot;,
      &quot;build_type&quot; : &quot;docker&quot;,
      &quot;build_hash&quot; : &quot;8ced7813d6f16d2ef30792e2fcde3e755795ee04&quot;,
      &quot;build_date&quot; : &quot;2021-02-08T22:44:01.320463Z&quot;,
      &quot;build_snapshot&quot; : false,
      &quot;lucene_version&quot; : &quot;8.7.0&quot;,
      &quot;minimum_wire_compatibility_version&quot; : &quot;6.8.0&quot;,
      &quot;minimum_index_compatibility_version&quot; : &quot;6.0.0-beta1&quot;
    },
    &quot;tagline&quot; : &quot;You Know, for Search&quot;
  }
  </code></pre>
  <p>(I have port-forwarded the service locally)</p>
  <p>However when hitting it with <a href="https://github.com/rakyll/hey" rel="nofollow noreferrer">hey</a></p>
  <pre><code>hey https://localhost:9200 -a username:password
  
  Status code distribution:
    [401] 200 responses
  
  </code></pre>
  <p>Any ideas?</p>