Permalink
Browse files

Typo fix in HttpSocket

`schema` should be `scheme`, this fixes the only use of
schema in HttpSocket.

Fixes #2345

Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information...
1 parent 495b7f2 commit be770bd9b8086d7136ec9a916659dc8e953b2da3 @dereuromark dereuromark committed with markstory Dec 6, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/Cake/Network/Http/HttpSocket.php
@@ -296,17 +296,17 @@ public function request($request = array()) {
if (!empty($this->request['cookies'])) {
$cookies = $this->buildCookies($this->request['cookies']);
}
- $schema = '';
+ $scheme = '';
$port = 0;
- if (isset($this->request['uri']['schema'])) {
- $schema = $this->request['uri']['schema'];
+ if (isset($this->request['uri']['scheme'])) {
+ $scheme = $this->request['uri']['scheme'];
}
if (isset($this->request['uri']['port'])) {
$port = $this->request['uri']['port'];
}
if (
- ($schema === 'http' && $port != 80) ||
- ($schema === 'https' && $port != 443) ||
+ ($scheme === 'http' && $port != 80) ||
+ ($scheme === 'https' && $port != 443) ||
($port != 80 && $port != 443)
) {
$Host .= ':' . $port;

0 comments on commit be770bd

Please sign in to comment.