title: Typo on CakePHP's HttpSocket class?
body: <p>I've been having issues when making HTTPS requests to servers via <code>HttpSocket</code>. HTTP requests work just fine. Checking the code of that class, I noticed <a href="http://api20.cakephp.org/view_source/http-socket/#l-295" rel="nofollow">the following piece starting on line 272</a> in <code>HttpSocket</code>. I'm on the latest 2.04 stable version, btw.</p>
  
  <pre><code>if (is_array($this-&gt;request['header'])) { 
      if (!empty($this-&gt;request['cookies'])) {
          $cookies = $this-&gt;buildCookies($this-&gt;request['cookies']);
      }
      $schema = '';
      $port = 0;
      if (isset($this-&gt;request['uri']['schema'])) {
          $schema = $this-&gt;request['uri']['schema'];
      }
      if (isset($this-&gt;request['uri']['port'])) {
          $port = $this-&gt;request['uri']['port'];
      }
      if (
          ($schema === 'http' &amp;&amp; $port != 80) ||
          ($schema === 'https' &amp;&amp; $port != 443) ||
          ($port != 80 &amp;&amp; $port != 443)
      ) {
          $Host .= ':' . $port;
      }
      $this-&gt;request['header'] = array_merge(compact('Host'), $this-&gt;request['header']);
  }
  </code></pre>
  
  <p>As far as I know, the <code>request</code> array never has a <code>schema</code> key, although it does have a <code>scheme</code> key, as seen <a href="http://api20.cakephp.org/view_source/http-socket/#l-88" rel="nofollow">here</a>. It's interesting that it seems that <a href="http://api12.cakephp.org/view_source/http-socket/#l-203" rel="nofollow">the code has been like since version 1.0</a> and I couldn't find anything about it on the web. I also changed the letter, just to see if my code worked, but it caused warnings and notices. So... am I missing something?</p>
  
  <p>I wanted to run it by experts, before I started digging deeper into the code. Any help or clarification will be appreciated.</p>
  
  <p>Thanks.</p>