Skip to content
Permalink
Browse files

PHPCS.

  • Loading branch information...
markstory committed Sep 10, 2016
1 parent a1e5181 commit 16056460bda489d6fb0e211192d963dce05b4010
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/Network/Request.php
@@ -1515,13 +1515,15 @@ public function getProtocolVersion()
if ($this->protocol) {
return $this->protocol;
}
// Lazily populate this data as it is generally not used.
preg_match('/^HTTP\/([\d.]+)$/', $this->env('SERVER_PROTOCOL'), $match);
$protocol = '1.1';
if (isset($match[1])) {
$protocol = $match[1];
}
$this->protocol = $protocol;
return $this->protocol;
}
@@ -1541,6 +1543,7 @@ public function withProtocolVersion($version)
}
$new = clone $this;
$new->protocol = $version;
return $new;
}

0 comments on commit 1605646

Please sign in to comment.
You can’t perform that action at this time.