Skip to content

Commit

Permalink
fixed getting protocol version in stream Response
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jan 23, 2017
1 parent d632d37 commit d367d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function parseHeaders($headers)
foreach ($headers as $header) {
if (strncmp($header, 'HTTP/', 5) === 0) {
$parts = explode(' ', $header, 3);
$this->version = substr($parts[0], 6);
$this->version = substr($parts[0], 5);
$this->statusCode = $parts[1];
$this->reasonPhrase = $parts[2];
} elseif (($pos = strpos($header, ':')) !== false) {
Expand Down

0 comments on commit d367d14

Please sign in to comment.