walkor 2 years ago
parent
commit
51804005ec
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Protocols/Http/Request.php

+ 2 - 2
src/Protocols/Http/Request.php

@@ -406,8 +406,8 @@ class Request
     protected function parseProtocolVersion()
     {
         $firstLine = strstr($this->buffer, "\r\n", true);
-        $protocoVersion = substr(strstr($firstLine, 'HTTP/'), 5);
-        $this->data['protocolVersion'] = $protocoVersion ?: '1.0';
+        $protocolVersion = substr(strstr($firstLine, 'HTTP/'), 5);
+        $this->data['protocolVersion'] = $protocolVersion ?: '1.0';
     }
 
     /**